From 9cb236da30795dd3071e4a7ee1e531d830fb99b7 Mon Sep 17 00:00:00 2001 From: Backslash Date: Thu, 26 Sep 2024 18:50:48 +1000 Subject: [PATCH] Update install.yml --- .../matrix-element-call/tasks/install.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/roles/custom/matrix-element-call/tasks/install.yml b/roles/custom/matrix-element-call/tasks/install.yml index c0e16456b..ccf2d4121 100644 --- a/roles/custom/matrix-element-call/tasks/install.yml +++ b/roles/custom/matrix-element-call/tasks/install.yml @@ -150,11 +150,18 @@ group: "{{ matrix_user_groupname }}" when: matrix_element_call_enabled | bool -# Update the .well-known/matrix/client file -- name: Update the well-known client file - ansible.builtin.template: - src: "{{ role_path }}/templates/well_known_client.json.j2" - dest: "{{ matrix_base_data_path }}/static-files/public/.well-known/matrix/client" +# Update the well-known client file for Element Call (adding RTC FOCI) +- name: Update the existing well-known client file for Element Call (RTC FOCI) + ansible.builtin.blockinfile: + path: "{{ matrix_base_data_path }}/static-files/public/.well-known/matrix/client" + block: | + "org.matrix.msc4143.rtc_foci": [ + { + "type": "livekit", + "livekit_service_url": "{{ matrix_element_call_jwt_service_url }}" + } + ] + marker: "# ANSIBLE MANAGED BLOCK - Element Call RTC FOCI" mode: '0644' owner: "{{ matrix_user_username }}" group: "{{ matrix_user_groupname }}"