Use ansible_facts[] instead of fact variables in docs
See https://github.com/ansible/ansible/issues/73654 Change-Id: I5fc19f355fe15dba2bb42067bd35c50dfae8d943
This commit is contained in:
parent
f1e56a32fe
commit
75bb7cfbfe
@ -122,7 +122,7 @@ Create containers for Zookeeper:
|
||||
zookeeper_hosts:
|
||||
{% for server in groups['control_nodes'] %}
|
||||
{{ server }}:
|
||||
ip: {{ hostvars[server]['ansible_default_ipv4']['address'] }}
|
||||
ip: {{ hostvars[server]['ansible_facts']['default_ipv4']['address'] }}
|
||||
{% endfor%}
|
||||
|
||||
.. code-block:: console
|
||||
|
Loading…
Reference in New Issue
Block a user