add option to disable repository creation

This commit is contained in:
nd 2021-07-01 18:54:13 +01:00
parent c52a5e2d57
commit d437e5609b
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
2 changed files with 4 additions and 1 deletions

View file

@ -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