feat(restic-s3): add ansible role for managing backups using restic

This commit is contained in:
2022-01-02 12:51:25 +01:00
parent e5e3697941
commit 616c0fecfc
7 changed files with 229 additions and 0 deletions

View File

@ -0,0 +1,13 @@
---
- name: Ensure system daemon is reloaded
listen: reload-systemd
systemd:
daemon_reload: true
- name: Ensure systemd service for '{{ restic_job_name }}' is started immediately
listen: trigger-restic
systemd:
name: "{{ restic_systemd_unit_naming_scheme }}.service"
state: started
when: restic_start_job_on_unit_change