mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
Fix example fact(ansible_default_ipv4.address) for delegated_facts
This commit is contained in:
parent
a31e9bd9ea
commit
d04a5246de
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ In 2.0, the directive `delegate_facts` may be set to `True` to assign the task's
|
||||||
with_items: "{{groups['dbservers']}}"
|
with_items: "{{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_addresses'][0]` even though dbservers were not part of the play, or left out by using `--limit`.
|
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`.
|
||||||
|
|
||||||
|
|
||||||
.. _run_once:
|
.. _run_once:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue