1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_restic_archiver.git synced 2024-08-16 10:09:49 +02:00
ansible_role_restic_archiver/tasks/main.yml

21 lines
479 B
YAML
Raw Normal View History

2019-08-13 13:26:40 +02:00
---
2020-12-07 18:32:04 +01:00
- include_tasks: versioncheck.yml
when: submodules_versioncheck|bool
2019-08-13 13:26:40 +02:00
2020-12-14 11:19:18 +01:00
- name: deploy restic template
2020-12-09 17:26:16 +01:00
template:
src: templates/restic_forget_snapshots.j2
2020-12-14 11:19:18 +01:00
dest: /opt/restic-backup.sh
group: "{{ restic_archiver__owner }}"
owner: "{{ restic_archiver__group }}"
2020-12-09 17:54:53 +01:00
mode: 0700
2020-12-14 11:19:18 +01:00
become: true
2020-12-09 17:42:54 +01:00
2020-12-14 15:50:39 +01:00
- include_tasks: logs.yml
when: restic_archiver__log_output | bool
2020-12-14 15:50:39 +01:00
- include_tasks: cron.yml
2020-12-14 16:05:01 +01:00
- include_tasks: mail.yml
when: restic_archiver__mailsummary | bool