2023-10-25 22:26:17 +02:00
|
|
|
---
|
2024-09-12 10:28:47 +02:00
|
|
|
- name: Ensure packages are installed
|
2023-10-25 22:26:17 +02:00
|
|
|
ansible.builtin.apt:
|
|
|
|
name: munin-node
|
|
|
|
state: present
|
|
|
|
notify:
|
|
|
|
- munin-node-configure --shell
|
|
|
|
- munin-node-configure --shell - 2
|
|
|
|
|
2024-09-12 10:28:47 +02:00
|
|
|
- name: Ensure directories exist
|
2023-10-25 22:26:17 +02:00
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
owner: root
|
|
|
|
group: root
|
2024-02-15 13:52:00 +01:00
|
|
|
mode: "0755"
|
2023-10-25 22:26:17 +02:00
|
|
|
loop:
|
|
|
|
- /etc/munin/plugin-conf.d
|
|
|
|
- /etc/munin/plugins
|
|
|
|
|
2024-09-12 10:28:47 +02:00
|
|
|
- name: Template munin-node configuration
|
2023-10-25 22:26:17 +02:00
|
|
|
ansible.builtin.template:
|
|
|
|
src: munin-node.conf.j2
|
|
|
|
dest: /etc/munin/munin-node.conf
|
|
|
|
owner: root
|
|
|
|
group: root
|
2024-02-15 13:52:00 +01:00
|
|
|
mode: "0755"
|
2023-10-25 22:26:17 +02:00
|
|
|
notify: restart munin-node
|