diff --git a/roles/munin_server/templates/munin.conf.j2 b/roles/munin_server/templates/munin.conf.j2 index 98e87f9..543427c 100644 --- a/roles/munin_server/templates/munin.conf.j2 +++ b/roles/munin_server/templates/munin.conf.j2 @@ -96,12 +96,12 @@ includedir /etc/munin/munin-conf.d # a simple host tree -{% for host in groups['all'] | difference(groups['disabled_munin']) %} +{% for host in groups['all'] | difference(groups['disabled_munin']) | sort %} [{{ host }}] address {{ hostvars[host]['ansible_default_ipv4']['address'] }} {% endfor %} -{% for host in mikrotik_hosts %} +{% for host in mikrotik_hosts | sort(attribute='name') %} [{{ host.name }}] address 127.0.0.1 {% endfor %}