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:
Jonathan Rosser 2021-03-01 13:26:16 +00:00
parent f1e56a32fe
commit 75bb7cfbfe
1 changed files with 1 additions and 1 deletions

View File

@ -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