mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-27 19:38:29 +01:00
a197968b7f
Now that 0.7.2 is out, the Docker image supports Postgres and we can do the (SQLite -> Postgres) migration. I've also found out that we needed to fix up the `tokens.ex_date` column data type a bit to prevent matrix-registration from raising exceptions when comparing `datetime.now()` with `ex_date` coming from the database. Example: > File "/usr/local/lib/python3.8/site-packages/matrix_registration/tokens.py", line 58, in valid > expired = self.ex_date < datetime.now() > TypeError: can't compare offset-naive and offset-aware datetimes
21 lines
771 B
YAML
21 lines
771 B
YAML
---
|
|
|
|
- name: Fail if required matrix-registration settings not defined
|
|
fail:
|
|
msg: >
|
|
You need to define a required configuration setting (`{{ item }}`) for using matrix-registration.
|
|
when: "vars[item] == ''"
|
|
with_items:
|
|
- "matrix_registration_shared_secret"
|
|
- "matrix_registration_admin_secret"
|
|
- "matrix_registration_server_location"
|
|
|
|
- name: (Deprecation) Catch and report renamed settings
|
|
fail:
|
|
msg: >-
|
|
Your configuration contains a variable, which now has a different name.
|
|
Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
|
|
when: "item.old in vars"
|
|
with_items:
|
|
- {'old': 'matrix_registration_docker_repo', 'new': 'matrix_registration_container_image_self_build_repo'}
|