2022-02-05 22:32:54 +02:00
|
|
|
---
|
2021-05-12 14:24:39 +02:00
|
|
|
# If the matrix-synapse role is not used, `matrix_synapse_role_executed` won't exist.
|
|
|
|
# We don't want to fail in such cases.
|
|
|
|
- name: Fail if matrix-synapse role already executed
|
2022-07-18 09:39:08 +02:00
|
|
|
ansible.builtin.fail:
|
2021-05-12 14:24:39 +02:00
|
|
|
msg: >-
|
|
|
|
The matrix-bridge-heisenbridge role needs to execute before the matrix-synapse role.
|
|
|
|
when: "matrix_heisenbridge_enabled and matrix_synapse_role_executed|default(False)"
|
|
|
|
|
2022-07-18 09:39:08 +02:00
|
|
|
- ansible.builtin.set_fact:
|
2021-05-12 14:24:39 +02:00
|
|
|
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-heisenbridge.service'] }}"
|
|
|
|
when: matrix_heisenbridge_enabled|bool
|
|
|
|
|
|
|
|
# If the matrix-synapse role is not used, these variables may not exist.
|
2022-07-18 09:39:08 +02:00
|
|
|
- ansible.builtin.set_fact:
|
2021-05-12 14:24:39 +02:00
|
|
|
matrix_synapse_container_extra_arguments: >
|
2022-05-18 14:43:39 +02:00
|
|
|
{{
|
|
|
|
matrix_synapse_container_extra_arguments|default([])
|
|
|
|
+
|
|
|
|
["--mount type=bind,src={{ matrix_heisenbridge_base_path }}/registration.yaml,dst=/heisenbridge-registration.yaml,ro"]
|
|
|
|
}}
|
2021-05-12 14:24:39 +02:00
|
|
|
|
|
|
|
matrix_synapse_app_service_config_files: >
|
2022-05-18 14:43:39 +02:00
|
|
|
{{
|
|
|
|
matrix_synapse_app_service_config_files|default([])
|
|
|
|
+
|
|
|
|
["/heisenbridge-registration.yaml"]
|
|
|
|
}}
|
2021-05-12 14:24:39 +02:00
|
|
|
when: matrix_heisenbridge_enabled|bool
|