I have two tasks for different roles that are virtually identical. The only difference is that a command they're running has an argument that is equal to the role name. Is it possible to combine these two tasks to a single task using the role name as a variable?
The pastie below shows before and after examples of what I'm looking for. I'd prefer not to repeat the code as in the before example, where the only difference is the name of the role.