xoxys.network/templates/etc/hosts.j2
Robert Kaussow 73a29b0619
Some checks failed
continuous-integration/drone/push Build is failing
fix: fix rhel9 compatibility
2022-09-18 13:02:53 +02:00

15 lines
561 B
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
127.0.0.1 localhost localhost.localdomain
{% if network_ipv6_enabled %}
::1 localhost6 localhost6.localdomain6
{% endif %}
{% if network_hostname is defined and network_fqdn is defined and network_interfaces[network_defaultif].ipaddr is defined %}
{{ network_interfaces[network_defaultif].ipaddr }} {{ network_fqdn }} {{ network_hostname }}
{% endif %}
{% if network_hosts_extra %}
{% for item in network_hosts_extra %}
{{ item.address }} {{ item.fqdn }} {{ item.hostname }}
{% endfor %}
{% endif %}