2022-04-05 11:37:27 +00:00
|
|
|
---
|
2022-11-27 07:16:18 +00:00
|
|
|
- name: Fail if required backup-borg settings not defined
|
2022-07-18 07:39:08 +00:00
|
|
|
ansible.builtin.fail:
|
2022-04-05 11:37:27 +00:00
|
|
|
msg: >-
|
2022-11-27 07:16:18 +00:00
|
|
|
You need to define a required configuration setting (`{{ item.name }}`).
|
|
|
|
when: "item.when | bool and vars[item.name] == ''"
|
2022-04-05 11:37:27 +00:00
|
|
|
with_items:
|
2022-11-27 07:16:18 +00:00
|
|
|
- {'name': 'matrix_backup_borg_ssh_key_private', when: true}
|
|
|
|
- {'name': 'matrix_backup_borg_location_repositories', when: true}
|
|
|
|
- {'name': 'matrix_backup_borg_postgresql_databases_hostname', when: "{{ matrix_backup_borg_postgresql_enabled }}"}
|
2022-04-18 11:48:37 +00:00
|
|
|
|
|
|
|
- name: Fail if encryption passphrase is undefined unless repository is unencrypted
|
2022-07-18 07:39:08 +00:00
|
|
|
ansible.builtin.fail:
|
2022-04-18 11:48:37 +00: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'"
|