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.3 KiB
30 lines
1.3 KiB
3 years ago
|
---
|
||
6 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:
|
||
6 years ago
|
msg: >-
|
||
|
The matrix-bridge-appservice-discord role needs to execute before the matrix-synapse role.
|
||
2 years ago
|
when: "matrix_appservice_discord_enabled and matrix_synapse_role_executed | default(False)"
|
||
6 years ago
|
|
||
2 years ago
|
- ansible.builtin.set_fact:
|
||
4 years ago
|
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-appservice-discord.service'] }}"
|
||
2 years ago
|
when: matrix_appservice_discord_enabled | bool
|
||
6 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_appservice_discord_config_path }}/registration.yaml,dst=/matrix-appservice-discord-registration.yaml,ro"]
|
||
|
}}
|
||
6 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
|
+
|
||
|
["/matrix-appservice-discord-registration.yaml"]
|
||
|
}}
|
||
2 years ago
|
when: matrix_appservice_discord_enabled | bool
|