Merge branch 'master' of ssh://git-ssh.notandy.de:2222/ansible/roles/backup-client

This commit is contained in:
nd 2021-08-13 12:44:39 +02:00
commit eed938b1b1
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
2 changed files with 4 additions and 1 deletions

View file

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

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