Update playbooks_delegation.rst (#46254)

Fix example variable lookup.

+label: docsite_pr
pull/46286/head
Enno Gröper 7 years ago committed by Alicia Cozine
parent 66eb5681f4
commit 1ff331e66a

@ -195,7 +195,7 @@ The directive `delegate_facts` may be set to `True` to assign the task's gathere
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.
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:

Loading…
Cancel
Save