Update playbooks_delegation.rst (#46254)
Fix example variable lookup. +label: docsite_pr
This commit is contained in:
parent
66eb5681f4
commit
1ff331e66a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue