mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
playbooks_reuse_roles.rst long and shorthand example actually made equivalent. (#48339)
This commit is contained in:
committed by
Alicia Cozine
parent
42c6ed7078
commit
e2bba149d6
@@ -173,9 +173,11 @@ Finally, you may wish to assign tags to the tasks inside the roles you specify.
|
|||||||
|
|
||||||
- hosts: webservers
|
- hosts: webservers
|
||||||
roles:
|
roles:
|
||||||
- role: bar
|
- role: foo
|
||||||
tags: ["foo"]
|
tags:
|
||||||
# using YAML shorthand, this is equivalent to the above
|
- bar
|
||||||
|
- baz
|
||||||
|
# using YAML shorthand, this is equivalent to the above:
|
||||||
- { role: foo, tags: ["bar", "baz"] }
|
- { role: foo, tags: ["bar", "baz"] }
|
||||||
|
|
||||||
Or, again, using the newer syntax::
|
Or, again, using the newer syntax::
|
||||||
|
|||||||
Reference in New Issue
Block a user