initial commit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
75891c3271
129 changed files with 8046 additions and 0 deletions
15
roles/restic/tasks/main.yml
Normal file
15
roles/restic/tasks/main.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
- 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue