🎨: sort hosts for munin

This commit is contained in:
VC
2024-07-26 13:23:34 +02:00
parent 9161f707f2
commit 8089d910e7

View File

@@ -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 %}