51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
---
|
|
|
|
- name: Install prereq
|
|
ansible.builtin.package:
|
|
name: nvme-cli
|
|
state: present
|
|
|
|
- name: Put nvme plugin configuration
|
|
ansible.builtin.template:
|
|
src: nvme.j2
|
|
dest: /etc/munin/plugin-conf.d/nvme
|
|
owner: root
|
|
group: root
|
|
mode: "0o640"
|
|
notify:
|
|
- Restart munin-node
|
|
|
|
- name: Put nvme script
|
|
ansible.builtin.copy:
|
|
src: files/nvme
|
|
dest: /etc/munin/plugins/nvme
|
|
owner: root
|
|
group: root
|
|
mode: "0o755"
|
|
notify:
|
|
- Restart munin-node
|
|
|
|
- name: Configure specific munin plugin
|
|
ansible.builtin.file:
|
|
path: "/etc/munin/plugins/sensors_{{ item }}"
|
|
src: /usr/share/munin/plugins/sensors_
|
|
state: link
|
|
notify:
|
|
- Restart munin-node
|
|
loop:
|
|
- temp
|
|
|
|
- name: Delete squid plugins
|
|
ansible.builtin.shell:
|
|
cmd: "rm -f /etc/munin/plugins/squid_*"
|
|
changed_when: true
|
|
notify:
|
|
- Restart munin-node
|
|
|
|
- name: Delete lxc interfaces plugins
|
|
ansible.builtin.shell:
|
|
cmd: "rm -f /etc/munin/plugins/if_*veth* /etc/munin/plugins/if_*fw* /etc/munin/plugins/if_*vmbr*"
|
|
changed_when: true
|
|
notify:
|
|
- Restart munin-node
|