Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

43 lines
1.4 KiB

  1. # SPDX-FileCopyrightText: 2025 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2025 Catalan Lover <catalanlover@protonmail.com>
  3. #
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. ---
  6. - name: Ensure git installed
  7. ansible.builtin.package:
  8. name: git
  9. state: present
  10. - name: Clone synapse-modules synapse_restrict_room_creation_git repository
  11. ansible.builtin.git:
  12. repo: "{{ matrix_synapse_ext_synapse_restrict_room_creation_git_repository_url }}"
  13. dest: "{{ matrix_synapse_ext_path }}/synapse-restrict-room-creation"
  14. become: true
  15. become_user: "{{ matrix_synapse_username }}"
  16. - ansible.builtin.set_fact:
  17. matrix_synapse_modules: >
  18. {{
  19. matrix_synapse_modules | default([])
  20. +
  21. [{
  22. "config": {
  23. "error_message_top_rooms": "Only server admins can create new spaces and rooms in Home."
  24. },
  25. "module": "restrict_room_creation.RestrictRoomCreation"
  26. }]
  27. +
  28. [{
  29. "module": "restrict_room_creation.RestrictJoinRules"
  30. }]
  31. }}
  32. matrix_synapse_container_extra_arguments: >
  33. {{
  34. matrix_synapse_container_extra_arguments | default([])
  35. +
  36. ["--mount type=bind,src=" + matrix_synapse_ext_path + "/synapse-restrict-room-creation/synapse_modules/restrict_room_creation,dst=" + matrix_synapse_in_container_python_packages_path + "/restrict_room_creation,ro"]
  37. }}