homeserver/roles/mgrote_munin_node/tasks/install.yml
Michael Grote 25696766c5
Some checks failed
ansible-lint / ansible-lint (push) Failing after 4s
gitleaks / gitleaks (push) Successful in 3s
set rate-limit higher and let... (#177)
Reviewed-on: https://git.mgrote.net///mg/homeserver/pulls/177
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2024-09-12 15:20:49 +02:00

28 lines
618 B
YAML

---
- 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