Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

41 líneas
1.3 KiB

  1. - name: Read Element Web config.json
  2. ansible.builtin.slurp:
  3. src: "{{ element_web_config_path }}"
  4. register: element_web_config_content
  5. - name: Load JSON data from config.json
  6. ansible.builtin.set_fact:
  7. element_web_config: "{{ element_web_config_content['content'] | b64decode | from_json }}"
  8. - name: Update Element Call configuration in config.json
  9. ansible.builtin.set_fact:
  10. updated_element_call_config: >
  11. {{
  12. {
  13. "element_call": {
  14. "url": "https://{{ matrix_element_call_domain }}",
  15. "participant_limit": 8,
  16. "brand": "Element Call",
  17. "use_exclusively": true
  18. },
  19. "features": {
  20. "feature_video_rooms": true,
  21. "feature_new_room_decoration_ui": true,
  22. "feature_group_calls": true,
  23. "feature_element_call_video_rooms": true
  24. }
  25. }
  26. }}
  27. - name: Merge updated Element Call configuration with existing config.json
  28. ansible.builtin.set_fact:
  29. element_web_config: "{{ element_web_config | combine(updated_element_call_config, recursive=True) }}"
  30. - name: Write updated Element Web config.json
  31. ansible.builtin.copy:
  32. content: "{{ element_web_config | to_nice_json }}"
  33. dest: "{{ element_web_config_path }}"
  34. mode: '0644'
  35. owner: "{{ matrix_user_username }}"
  36. group: "{{ matrix_user_groupname }}"