homeserver/roles/mgrote_munin_node/tasks/install.yml

29 lines
618 B
YAML
Raw Permalink Normal View History

---
- name: Ensure packages are installed
ansible.builtin.apt:
name: munin-node
state: present
notify:
- munin-node-configure --shell
- munin-node-configure --shell - 2
- name: Ensure directories exist
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: root
group: root
mode: "0755"
loop:
- /etc/munin/plugin-conf.d
- /etc/munin/plugins
- name: Template munin-node configuration
ansible.builtin.template:
src: munin-node.conf.j2
dest: /etc/munin/munin-node.conf
owner: root
group: root
mode: "0755"
notify: restart munin-node