🎨: sort hosts for munin
This commit is contained in:
@@ -96,12 +96,12 @@ includedir /etc/munin/munin-conf.d
|
|||||||
|
|
||||||
# a simple host tree
|
# a simple host tree
|
||||||
|
|
||||||
{% for host in groups['all'] | difference(groups['disabled_munin']) %}
|
{% for host in groups['all'] | difference(groups['disabled_munin']) | sort %}
|
||||||
[{{ host }}]
|
[{{ host }}]
|
||||||
address {{ hostvars[host]['ansible_default_ipv4']['address'] }}
|
address {{ hostvars[host]['ansible_default_ipv4']['address'] }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% for host in mikrotik_hosts %}
|
{% for host in mikrotik_hosts | sort(attribute='name') %}
|
||||||
[{{ host.name }}]
|
[{{ host.name }}]
|
||||||
address 127.0.0.1
|
address 127.0.0.1
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Reference in New Issue
Block a user