additional course material RH294
Olaf Bohlen
2019-12-04 96eda8797a3510ea39108406fdbedd1d0a1d47e0
1
2
3
4
5
# 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 %}