xoxys.network/templates/etc/hosts.j2

10 lines
493 B
Plaintext
Raw Normal View History

2017-05-18 21:10:07 +00:00
#jinja2: trim_blocks: True, lstrip_blocks: True
# {{ ansible_managed }}
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
{% if network.disable_ipv6 == false %}
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
{% endif %}
{% if network.hostname is defined and network.fqdn is defined and network.config[network.defaultif].ipaddr is defined %}
{{ network.config[network.defaultif].ipaddr }} {{ network.fqdn }} {{ network.hostname }}
{% endif %}