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

29 lines
863 B
YAML

---
- name: Run optional versionscheck
ansible.builtin.include_tasks: versioncheck.yml
when: submodules_versioncheck | bool
- name: Deploy restic template
ansible.builtin.template:
src: templates/restic_forget_snapshots.j2
dest: /opt/restic-backup.sh
group: "{{ restic_archiver__owner }}"
owner: "{{ restic_archiver__group }}"
mode: 0700
become: true
- name: Setup logrotate
ansible.builtin.include_tasks: logs.yml
when: restic_archiver__log_output | bool
- name: Create cronjob
ansible.builtin.include_tasks: cron.yml
when: not restic_archiver__use_systemd_timer | bool
- name: Create systemd timer
ansible.builtin.include_tasks: systemd.yml
when: restic_archiver__use_systemd_timer | bool
- name: Install requirements for mailing
ansible.builtin.include_tasks: mail.yml
when: restic_archiver__mailsummary | bool