Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

40 строки
1.8 KiB

  1. ---
  2. - name: (Deprecation) Warn about matrix_postgres_use_external usage
  3. fail:
  4. msg: >
  5. The `matrix_postgres_use_external` variable defined in your configuration is not used by this playbook anymore!
  6. You'll need to adapt to the new way of using an external Postgres server.
  7. It's a combination of `matrix_postgres_enabled: false` and specifying Postgres connection
  8. details in a few `matrix_postgres_connection_` variables.
  9. See the "Using an external PostgreSQL server (optional)" documentation page.
  10. when: "'matrix_postgres_use_external' in vars"
  11. # This is separate (from the other required variables below),
  12. # because we'd like to have a friendlier message for our existing users.
  13. - name: Fail if matrix_postgres_connection_password not defined
  14. fail:
  15. msg: >-
  16. The playbook no longer has a default Postgres password defined in the `matrix_postgres_connection_password` variable, among lots of other Postgres changes.
  17. You need to perform multiple manual steps to resolve this.
  18. See our changelog for more details:
  19. https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/CHANGELOG.md#breaking-change-postgres-changes-that-require-manual-intervention
  20. when: "matrix_postgres_connection_password == ''"
  21. - name: Fail if required Postgres settings not defined
  22. fail:
  23. msg: >-
  24. You need to define a required configuration setting (`{{ item }}`).
  25. when: "vars[item] == ''"
  26. with_items:
  27. - "matrix_postgres_connection_hostname"
  28. - "matrix_postgres_connection_port"
  29. - "matrix_postgres_connection_username"
  30. - "matrix_postgres_connection_password"
  31. - "matrix_postgres_db_name"
  32. - name: Fail if Postgres password length exceeded
  33. fail:
  34. msg: "The maximum `matrix_postgres_connection_password` length is 99 characters"
  35. when: "matrix_postgres_connection_hostname|length > 99"