linderhof/roles/restic/tasks/main.yml

16 lines
385 B
YAML
Raw Permalink Normal View History

---
- name: Install restic binary
include_tasks: install.yml
- name: Configure restic environment
include_tasks: config.yml
- name: Prepare backup repository
include_tasks: "{{ backend_file }}"
vars:
backend_file: "{{ 'backend_sftp.yml' if restic_backend_type == 'sftp' else 'backend.yml' }}"
- name: Create systemd backup timer and service
include_tasks: backup.yml