Adding necessary roles for UPS monitoring

This commit is contained in:
VC
2020-01-05 13:41:52 +01:00
parent 397335bd53
commit abb8f9dce9

View File

@@ -60,6 +60,18 @@
- restart munin-node - restart munin-node
when: "'pgsqlservers' in group_names" when: "'pgsqlservers' in group_names"
- name: "add specific nut value for {{ item }}"
file:
path: "/etc/munin/plugins/nutups_eaton3s_{{ item }}"
src: /usr/share/munin/plugins/nutups_
state: link
notify:
- restart munin-node
when: "'nut_server' in group_names"
loop:
- charge
- voltages
- name: reconfigure munin-node - name: reconfigure munin-node
shell: shell:
cmd: munin-node-configure --shell | sh cmd: munin-node-configure --shell | sh