2022-04-05 13:37:27 +02:00
|
|
|
---
|
|
|
|
- name: Fail if required settings not defined
|
2022-07-18 09:39:08 +02:00
|
|
|
ansible.builtin.fail:
|
2022-04-05 13:37:27 +02:00
|
|
|
msg: >-
|
|
|
|
You need to define a required configuration setting (`{{ item }}`).
|
|
|
|
when: "vars[item] == ''"
|
|
|
|
with_items:
|
|
|
|
- "matrix_backup_borg_ssh_key_private"
|
|
|
|
- "matrix_backup_borg_location_repositories"
|
2022-04-18 13:48:37 +02:00
|
|
|
|
|
|
|
- name: Fail if encryption passphrase is undefined unless repository is unencrypted
|
2022-07-18 09:39:08 +02:00
|
|
|
ansible.builtin.fail:
|
2022-04-18 13:48:37 +02:00
|
|
|
msg: >-
|
|
|
|
You need to define a required passphrase using the `matrix_backup_borg_storage_encryption_passphrase` variable.
|
|
|
|
when: "matrix_backup_borg_storage_encryption_passphrase == '' and matrix_backup_borg_encryption != 'none'"
|