Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

35 Zeilen
1.6 KiB

  1. # SPDX-FileCopyrightText: 2022 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2024 wjbeckett
  3. # SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev
  4. #
  5. # SPDX-License-Identifier: AGPL-3.0-or-later
  6. ---
  7. - name: Fail if Element Call architecture is not supported
  8. ansible.builtin.fail:
  9. msg: >
  10. Element Call is only supported on amd64 and arm64 architectures.
  11. Your architecture is configured as '{{ matrix_element_call_architecture }}'.
  12. when: "matrix_element_call_architecture not in ['amd64', 'arm64']"
  13. - name: Fail if required Element Call settings are not defined
  14. ansible.builtin.fail:
  15. msg: >
  16. You need to define a required configuration setting (`{{ item.name }}`).
  17. when: "item.when | bool and lookup('vars', item.name, default='') | string | length == 0"
  18. with_items:
  19. - {'name': 'matrix_element_call_container_network', when: true}
  20. - {'name': 'matrix_element_call_hostname', when: true}
  21. - {'name': 'matrix_element_call_config_livekit_livekit_service_url', when: true}
  22. # Element Call appears to hardcode all paths to `/` (e.g. `/config.json`, `/assets/...`).
  23. # While we can properly serve the homepage and handle stripping the path prefix on our side,
  24. # the hardcoded URLs in the Element Call are pointing people to the wrong place, which is a problem.
  25. - name: Fail if Element Call path prefix is different than /
  26. ansible.builtin.fail:
  27. msg: >-
  28. Element Call with a path prefix other than '/' is not supported yet.
  29. You have configured matrix_element_call_path_prefix to '{{ matrix_element_call_path_prefix }}'.
  30. when: "matrix_element_call_path_prefix != '/'"