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:
|
||||
url: /var/backup-client/restic
|
||||
repo_type: local
|
||||
repo_folder_create: true
|
||||
additional_keys: {}
|
||||
mode: vm-via-hypervisor
|
||||
enabled: True
|
||||
|
|
|
|||
|
|
@ -196,7 +196,9 @@
|
|||
export RESTIC_REPOSITORY="{{ backups.backends.restic.url }}"
|
||||
export RESTIC_PASSWORD_FILE="/etc/backup-client/restic.key"
|
||||
- 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:
|
||||
path: "{{ backups.backends.restic.url }}"
|
||||
state: directory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue