Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
939 B

  1. ---
  2. - name: Read the existing well-known client file
  3. ansible.builtin.slurp:
  4. path: "{{ matrix_base_data_path }}/static-files/public/.well-known/matrix/client"
  5. register: client_file_content
  6. - name: Load the existing JSON content
  7. ansible.builtin.set_fact:
  8. client_json: "{{ client_file_content['content'] | b64decode | from_json }}"
  9. - name: Update the existing well-known client file for Element Call (RTC FOCI)
  10. ansible.builtin.set_fact:
  11. updated_client_json: "{{ client_json | combine({'org.matrix.msc4143.rtc_foci': [{'type': 'livekit', 'livekit_service_url': matrix_jwt_service_url}]}, recursive=True) }}"
  12. - name: Write the updated well-known client file
  13. ansible.builtin.copy:
  14. content: "{{ updated_client_json | to_nice_json }}"
  15. dest: "{{ matrix_base_data_path }}/static-files/public/.well-known/matrix/client"
  16. mode: '0644'
  17. owner: "{{ matrix_user_username }}"
  18. group: "{{ matrix_user_groupname }}"