Clarify how tagged roles work

This is a confusing part of roles and tags. Most people assume that tagging a role means that the tagged tasks inside the role will run based on the tags specified. But in reality, it tags the whole role with those tags.
pull/13005/head
Tim Gerla 9 years ago
parent 61ace1d3c4
commit 9008b7b0e7

@ -238,6 +238,7 @@ Finally, you may wish to assign tags to the roles you specify. You can do so inl
roles:
- { role: foo, tags: ["bar", "baz"] }
Note that this *tags all of the tasks in that role with the tags specified*, overriding any tags that are specified inside the role. If you find yourself building a role with lots of tags and you want to call subsets of the role at different times, you should consider just splitting that role into multiple roles.
If the play still has a 'tasks' section, those tasks are executed after roles are applied.

Loading…
Cancel
Save