xoxys.network/templates/etc/hosts.j2

15 lines
628 B
Plaintext
Raw Normal View History

2018-12-01 03:06:08 +00:00
#jinja2: lstrip_blocks: True
2017-05-18 21:10:07 +00:00
# {{ ansible_managed }}
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
2019-06-21 06:06:43 +00:00
{% if not network_disable_ipv6 %}
2017-05-18 21:10:07 +00:00
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
{% endif %}
2017-07-03 18:27:28 +00:00
{% 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 }}
2017-05-18 21:10:07 +00:00
{% endif %}
2018-12-07 22:04:58 +00:00
{% if network_hosts_entries %}
2018-12-01 03:06:08 +00:00
{% for item in network_hosts_entries %}
{{ item.address }} {{ item.fqdn }} {{ item.hostname }}
{% endfor %}
2018-12-07 22:04:58 +00:00
{% endif %}