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

Update playbooks_delegation.rst (#46254)

Fix example variable lookup.

+label: docsite_pr
This commit is contained in:
Enno Gröper 2018-09-28 20:38:52 +02:00 committed by Alicia Cozine
parent 66eb5681f4
commit 1ff331e66a

View file

@ -195,7 +195,7 @@ The directive `delegate_facts` may be set to `True` to assign the task's gathere
loop: "{{groups['dbservers']}}" loop: "{{groups['dbservers']}}"
The above will gather facts for the machines in the dbservers group and assign the facts to those machines and not to app_servers. The above will gather facts for the machines in the dbservers group and assign the facts to those machines and not to app_servers.
This way you can lookup `hostvars['dbhost1']['default_ipv4']['address']` even though dbservers were not part of the play, or left out by using `--limit`. This way you can lookup `hostvars['dbhost1']['ansible_default_ipv4']['address']` even though dbservers were not part of the play, or left out by using `--limit`.
.. _run_once: .. _run_once: