mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Merge pull request #9769 from mikeputnam/devel
Typo fix in playbook delegation docs.
This commit is contained in:
@@ -161,7 +161,7 @@ This can be optionally paired with "delegate_to" to specify an individual host t
|
|||||||
When "run_once" is not used with "delegate_to" it will execute on the first host, as defined by inventory,
|
When "run_once" is not used with "delegate_to" it will execute on the first host, as defined by inventory,
|
||||||
in the group(s) of hosts targeted by the play. e.g. webservers[0] if the play targeted "hosts: webservers".
|
in the group(s) of hosts targeted by the play. e.g. webservers[0] if the play targeted "hosts: webservers".
|
||||||
|
|
||||||
This aproach is similar, although more concise and cleaner than applying a conditional to a task such as::
|
This approach is similar, although more concise and cleaner than applying a conditional to a task such as::
|
||||||
|
|
||||||
- command: /opt/application/upgrade_db.py
|
- command: /opt/application/upgrade_db.py
|
||||||
when: inventory_hostname == webservers[0]
|
when: inventory_hostname == webservers[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user