Files
ansible/roles/munin_client/tasks/restic.yml
2025-02-25 07:56:29 +01:00

29 lines
562 B
YAML

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