Merge pull request #13005 from ansible/tgerla-clarify-role-tags

Clarify how tagged roles work
This commit is contained in:
Brian Coca 2015-11-02 11:51:12 -05:00
commit 5ee01d00bb

View file

@ -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.