aboutsummaryrefslogtreecommitdiffstats
path: root/roles/debian/templates/hosts.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/debian/templates/hosts.j2')
-rw-r--r--roles/debian/templates/hosts.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/debian/templates/hosts.j2 b/roles/debian/templates/hosts.j2
new file mode 100644
index 0000000..bce5120
--- /dev/null
+++ b/roles/debian/templates/hosts.j2
@@ -0,0 +1,11 @@
+127.0.0.1 localhost
+
+::1 localhost ip6-localhost ip6-loopback
+ff02::1 ip6-allnodes
+ff02::2 ip6-allrouters
+{% if hosts is defined %}
+
+{% for addr, names in hosts %}
+{{ addr }} {{ names|join(' ') }}
+{% endfor %}
+{% endif %}