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:
commit
5ee01d00bb
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue