mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-10 20:57:41 +01:00
16 lines
641 B
YAML
16 lines
641 B
YAML
---
|
|
- name: Fail if required settings not defined
|
|
ansible.builtin.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
|
|
ansible.builtin.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'"
|