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.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/debian/templates/hosts.j2 b/roles/debian/templates/hosts.j2
index bce5120..31e5684 100644
--- a/roles/debian/templates/hosts.j2
+++ b/roles/debian/templates/hosts.j2
@@ -5,7 +5,7 @@ ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
{% if hosts is defined %}
-{% for addr, names in hosts %}
+{% for addr, names in hosts|dictsort(true) %}
{{ addr }} {{ names|join(' ') }}
{% endfor %}
{% endif %}