From 42ef2bc784507287b47b5f584984298b1dfc2317 Mon Sep 17 00:00:00 2001 From: ahmet Date: Tue, 23 Aug 2022 09:59:54 +0300 Subject: [PATCH] Dendrite: Support for Mautrix Facebook Warning: Logging into Facebook might break your server due to backfilling. Please consider Facebook support experimental, for now. Further investigation is needed. --- .../tasks/init.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/roles/matrix-bridge-mautrix-facebook/tasks/init.yml b/roles/matrix-bridge-mautrix-facebook/tasks/init.yml index c5eb58bec..c2eaec418 100644 --- a/roles/matrix-bridge-mautrix-facebook/tasks/init.yml +++ b/roles/matrix-bridge-mautrix-facebook/tasks/init.yml @@ -10,8 +10,8 @@ matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mautrix-facebook.service'] }}" when: matrix_mautrix_facebook_enabled | bool -# If the matrix-synapse role is not used, these variables may not exist. - ansible.builtin.set_fact: + # If the matrix-synapse role is not used, these variables may not exist. matrix_synapse_container_extra_arguments: > {{ matrix_synapse_container_extra_arguments | default([]) @@ -25,6 +25,20 @@ + ["/matrix-mautrix-facebook-registration.yaml"] }} + # If the matrix-dendrite role is not used, these variables may not exist. + matrix_dendrite_container_extra_arguments: > + {{ + matrix_dendrite_container_extra_arguments | default([]) + + + ["--mount type=bind,src={{ matrix_mautrix_facebook_config_path }}/registration.yaml,dst=/matrix-mautrix-facebook-registration.yaml,ro"] + }} + + matrix_dendrite_app_service_config_files: > + {{ + matrix_dendrite_app_service_config_files | default([]) + + + ["/matrix-mautrix-facebook-registration.yaml"] + }} when: matrix_mautrix_facebook_enabled | bool - block: