mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-07 11:17:34 +01:00
949fdd0135
* matrix-backup-borg: added option for unencrypted repo access * matrix-backup-borg: fixed requiring password for unencrypted repos; changed variable name * matrix-backup-borg: add unknown_unencrypted_repo_access_is_ok to config.yaml.j2 * matrix-backup-borg: cleanup comments * matrix-backup-borg: add documentation regarding unencrypted repos * matrix-backup-borg: add readability and ease of use to code * matrix-backup-borg: fix wording in defaults/main.yml comment * matrix-backup-borg: add quotes to docs * Indicate the variable to use Co-authored-by: Slavi Pantaleev <slavi@devture.com>
16 lines
609 B
YAML
16 lines
609 B
YAML
---
|
|
- name: Fail if required settings not defined
|
|
fail:
|
|
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"
|
|
|
|
- name: Fail if encryption passphrase is undefined unless repository is unencrypted
|
|
fail:
|
|
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'"
|