: restic munin plugins

This commit is contained in:
VC
2025-02-25 07:56:29 +01:00
parent e7a070d099
commit aa4ff098fc
6 changed files with 91 additions and 2 deletions

View File

@@ -0,0 +1,28 @@
---
- name: Ensure some packages are installed
ansible.builtin.package:
name:
- jq
state: present
update_cache: true
- name: Put restic plugin configuration
ansible.builtin.template:
src: restic.j2
dest: /etc/munin/plugin-conf.d/restic
owner: root
group: root
mode: "0o640"
notify:
- Restart munin-node
- name: Put restic scripts
ansible.builtin.copy:
src: files/restic_backup
dest: /etc/munin/plugins/restic_backup
owner: root
group: root
mode: "0o755"
notify:
- Restart munin-node