Skip to content
Snippets Groups Projects
Verified Commit d437e560 authored by nd's avatar nd
Browse files

add option to disable repository creation

parent c52a5e2d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment