1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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: roles:
- { role: foo, tags: ["bar", "baz"] } - { 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. If the play still has a 'tasks' section, those tasks are executed after roles are applied.