✨: restic munin plugins
This commit is contained in:
28
roles/munin_client/tasks/restic.yml
Normal file
28
roles/munin_client/tasks/restic.yml
Normal 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
|
Reference in New Issue
Block a user