add better remote repo support
This commit is contained in:
parent
de9e0004f6
commit
c52a5e2d57
3 changed files with 11 additions and 8 deletions
|
|
@ -154,7 +154,9 @@
|
|||
state: "{{ item }}"
|
||||
|
||||
- name: handle common restic based setup tasks
|
||||
when: backup_backend == 'restic'
|
||||
when:
|
||||
- backup_backend == 'restic'
|
||||
- backup_executor
|
||||
block:
|
||||
- name: install backend tools (restic)
|
||||
apt:
|
||||
|
|
@ -202,11 +204,9 @@
|
|||
group: root
|
||||
mode: 0700
|
||||
- name: create repo for restic
|
||||
when: backups.backends.restic.repo_type == 'local'
|
||||
shell: 'source /etc/backup-client/restic.env; restic init'
|
||||
shell: 'source /etc/backup-client/restic.env; restic snapshots > /dev/null || restic init'
|
||||
args:
|
||||
executable: /bin/bash
|
||||
creates: "{{ backups.backends.restic.url }}/config"
|
||||
|
||||
- name: handle hypervisor mode
|
||||
when: backups.mode == 'hypervisor-restic'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue