add option to disable repository creation
This commit is contained in:
parent
c52a5e2d57
commit
d437e5609b
2 changed files with 4 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ backups:
|
||||||
restic:
|
restic:
|
||||||
url: /var/backup-client/restic
|
url: /var/backup-client/restic
|
||||||
repo_type: local
|
repo_type: local
|
||||||
|
repo_folder_create: true
|
||||||
additional_keys: {}
|
additional_keys: {}
|
||||||
mode: vm-via-hypervisor
|
mode: vm-via-hypervisor
|
||||||
enabled: True
|
enabled: True
|
||||||
|
|
|
||||||
|
|
@ -196,7 +196,9 @@
|
||||||
export RESTIC_REPOSITORY="{{ backups.backends.restic.url }}"
|
export RESTIC_REPOSITORY="{{ backups.backends.restic.url }}"
|
||||||
export RESTIC_PASSWORD_FILE="/etc/backup-client/restic.key"
|
export RESTIC_PASSWORD_FILE="/etc/backup-client/restic.key"
|
||||||
- name: create restic repository folder
|
- name: create restic repository folder
|
||||||
when: backups.backends.restic.repo_type == 'local'
|
when:
|
||||||
|
- backups.backends.restic.repo_type == 'local'
|
||||||
|
- backups.backends.restic.repo_folder_create
|
||||||
file:
|
file:
|
||||||
path: "{{ backups.backends.restic.url }}"
|
path: "{{ backups.backends.restic.url }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue