Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
740 B

  1. ---
  2. - name: Fail if required settings not defined
  3. fail:
  4. msg: >-
  5. You need to define a required configuration setting (`{{ item }}`).
  6. when: "vars[item] == ''"
  7. with_items:
  8. - "matrix_backup_borg_ssh_key_private"
  9. - "matrix_backup_borg_location_repositories"
  10. # - "matrix_backup_borg_storage_encryption_passphrase"
  11. # when: "matrix_backup_borg_unknown_unencrypted_repo_access_is_ok == false"
  12. # - "matrix_backup_borg_storage_encryption_passphrase"
  13. - name: Fail if encryption passphrase is undefined unless repository is unencrypted
  14. fail:
  15. msg: >-
  16. You need to define a required passphrase.
  17. when: "matrix_backup_borg_storage_encryption_passphrase == '' and not matrix_backup_borg_encryption == 'none'"