ajout de tout ce qui est nécessaire pour munin

This commit is contained in:
VC
2024-07-05 11:53:06 +02:00
parent 0ee4076934
commit 0c1822ba2a
2 changed files with 2 additions and 74 deletions

View File

@@ -65,24 +65,8 @@
when: "'pgsqlservers' in group_names"
# For Munin servers
- name: deploy mikrotik unitary scripts
copy:
src: "./files/{{ item.0 }}"
dest: "/etc/munin/plugins/{{ item.0 }}{{ item.1.name }}"
mode: 0755
loop: "{{ mikrotik_unitary_scripts|product(mikrotik_hosts)|list }}"
notify:
- restart munin-node
when: "'muninservers' in group_names"
- name: deploy mikrotik per iface scripts
copy:
src: "./files/{{ item.1 }}"
dest: "/etc/munin/plugins/{{ item.1 }}{{ item.0.0.name }}_{{ item.0.1 }}"
mode: 0755
loop: "{{ mikrotik_hosts|subelements('ifaces')|product(mikrotik_periface_scripts) }}"
notify:
- restart munin-node
- name: execute specific tasks for munin servers
include_tasks: mikrotik.yml
when: "'muninservers' in group_names"
# for NUT (UPS) servers