Matrix Docker Ansible eploy
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

36 linhas
1.0 KiB

  1. ---
  2. # Update the homeserver.yaml file with Element Call config
  3. - name: Ensure homeserver.yaml exists
  4. ansible.builtin.file:
  5. path: "{{ matrix_homeserver_config_path }}"
  6. state: file
  7. mode: 0644
  8. - name: Add listeners section for Element Call to homeserver.yaml
  9. ansible.builtin.blockinfile:
  10. path: "{{ matrix_homeserver_config_path }}"
  11. block: |
  12. listeners:
  13. - port: 8008
  14. tls: false
  15. type: http
  16. x_forwarded: true
  17. resources:
  18. - names: [client, federation, openid]
  19. compress: false
  20. marker: "# ANSIBLE MANAGED BLOCK - Element Call listeners"
  21. mode: '0644'
  22. owner: "{{ matrix_user_username }}"
  23. group: "{{ matrix_user_groupname }}"
  24. - name: Ensure serve_server_wellknown is enabled in homeserver.yaml
  25. ansible.builtin.lineinfile:
  26. path: "{{ matrix_homeserver_config_path }}"
  27. line: "serve_server_wellknown: true"
  28. insertafter: EOF
  29. state: present
  30. mode: '0644'
  31. owner: "{{ matrix_user_username }}"
  32. group: "{{ matrix_user_groupname }}"