🎨: sort hosts for munin
This commit is contained in:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user