Michael Grote
25696766c5
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>
28 lines
618 B
YAML
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
|