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.
30 lines
1.2 KiB
30 lines
1.2 KiB
3 years ago
|
---
|
||
4 years ago
|
# 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
|
||
2 years ago
|
ansible.builtin.fail:
|
||
4 years ago
|
msg: >-
|
||
|
The matrix-bridge-heisenbridge role needs to execute before the matrix-synapse role.
|
||
2 years ago
|
when: "matrix_heisenbridge_enabled and matrix_synapse_role_executed | default(False)"
|
||
4 years ago
|
|
||
2 years ago
|
- ansible.builtin.set_fact:
|
||
4 years ago
|
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-heisenbridge.service'] }}"
|
||
2 years ago
|
when: matrix_heisenbridge_enabled | bool
|
||
4 years ago
|
|
||
|
# If the matrix-synapse role is not used, these variables may not exist.
|
||
2 years ago
|
- ansible.builtin.set_fact:
|
||
2 years ago
|
matrix_homeserver_container_runtime_injected_arguments: >
|
||
3 years ago
|
{{
|
||
2 years ago
|
matrix_homeserver_container_runtime_injected_arguments | default([])
|
||
3 years ago
|
+
|
||
|
["--mount type=bind,src={{ matrix_heisenbridge_base_path }}/registration.yaml,dst=/heisenbridge-registration.yaml,ro"]
|
||
|
}}
|
||
4 years ago
|
|
||
2 years ago
|
matrix_homeserver_app_service_runtime_injected_config_files: >
|
||
3 years ago
|
{{
|
||
2 years ago
|
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
||
3 years ago
|
+
|
||
|
["/heisenbridge-registration.yaml"]
|
||
|
}}
|
||
2 years ago
|
when: matrix_heisenbridge_enabled | bool
|