blse2-public/common-debian/templates/etc/hosts.j2

15 lines
311 B
Django/Jinja

# Local system hosts file
# {{ ansible_managed }}
127.0.0.1 localhost
::1 ip6-localhost ip6-loopback
ff02::1 ip6-allmodes
ff02::2 ip6-allrouters
{% if hosts_entries is defined %}
{% for host in hosts_entries %}
{{ host.ip }}{% for name in host.names %} {{ name }}{% endfor %}
{% endfor %}
{% endif %}