xoxys.network/templates/etc/hosts.j2

15 lines
561 B
Plaintext
Raw Normal View History

2018-12-01 04:06:08 +01:00
#jinja2: lstrip_blocks: True
2019-08-27 22:24:09 +02:00
{{ ansible_managed | comment }}
2022-09-18 13:02:53 +02:00
127.0.0.1 localhost localhost.localdomain
{% if network_ipv6_enabled %}
2022-09-18 13:02:53 +02:00
::1 localhost6 localhost6.localdomain6
2017-05-18 23:10:07 +02:00
{% endif %}
2017-07-03 20:27:28 +02: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 23:10:07 +02:00
{% endif %}
2022-09-18 13:02:53 +02:00
{% if network_hosts_extra %}
{% for item in network_hosts_extra %}
2018-12-01 04:06:08 +01:00
{{ item.address }} {{ item.fqdn }} {{ item.hostname }}
{% endfor %}
2018-12-07 23:04:58 +01:00
{% endif %}