additional course material RH294
Student User
2020-02-20 67b9520a2490b9894fea1a76b98e4f5c2226b62f
hosts.j2
@@ -1,5 +1,4 @@
# template for /etc/hosts
{% for host in groups['all'] %}
{{ hostvars['host']['ansible_facts'] }}
{# {{ hostvars['host']['ansible_facts']['default_ipv4']['address'] }} {{ hostvars['host']['ansible_facts']['fqdn'] }} {{ hostvars['host']['ansible_facts']['hostname'] }} #}
{% endfor %}
{{ hostvars[host]['ansible_facts']['default_ipv4']['address'] }} {{ hostvars[host]['ansible_facts']['fqdn'] }} {{ hostvars[host]['ansible_facts']['hostname'] }}
{% endfor %}