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.
 
 

28 lines
1.2 KiB

  1. ---
  2. # This is separate (from the other required variables below),
  3. # because we'd like to have a friendlier message for our existing users.
  4. - name: Fail if matrix_postgres_connection_password not defined
  5. fail:
  6. msg: >-
  7. The playbook no longer has a default Postgres password defined in the `matrix_postgres_connection_password` variable, among lots of other Postgres changes.
  8. You need to perform multiple manual steps to resolve this.
  9. See our changelog for more details:
  10. https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/CHANGELOG.md#breaking-change-postgres-changes-that-require-manual-intervention
  11. when: "matrix_postgres_connection_password == ''"
  12. - name: Fail if required Postgres settings not defined
  13. fail:
  14. msg: >-
  15. You need to define a required configuration setting (`{{ item }}`).
  16. when: "vars[item] == ''"
  17. with_items:
  18. - "matrix_postgres_connection_hostname"
  19. - "matrix_postgres_connection_username"
  20. - "matrix_postgres_connection_password"
  21. - "matrix_postgres_backup_schedule"
  22. - "matrix_postgres_backup_keep_days"
  23. - "matrix_postgres_backup_keep_weeks"
  24. - "matrix_postgres_backup_keep_months"
  25. - "matrix_postgres_backup_path"