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.
 
 

46 lines
1.3 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Download matrix_encryption_disabler
  6. ansible.builtin.get_url:
  7. url: "{{ matrix_synapse_ext_encryption_disabler_download_url }}"
  8. dest: "{{ matrix_synapse_ext_path }}/matrix_e2ee_filter.py"
  9. force: true
  10. mode: 0440
  11. owner: "{{ matrix_synapse_uid }}"
  12. group: "{{ matrix_synapse_gid }}"
  13. register: result
  14. retries: "{{ devture_playbook_help_geturl_retries_count }}"
  15. delay: "{{ devture_playbook_help_geturl_retries_delay }}"
  16. until: result is not failed
  17. - ansible.builtin.set_fact:
  18. matrix_synapse_modules: |
  19. {{
  20. matrix_synapse_modules | default([])
  21. +
  22. [
  23. {
  24. "module": "matrix_e2ee_filter.EncryptedRoomFilter",
  25. "config": matrix_synapse_ext_encryption_config
  26. }
  27. ]
  28. }}
  29. matrix_synapse_container_extra_arguments: >
  30. {{
  31. matrix_synapse_container_extra_arguments | default([])
  32. +
  33. ["--mount type=bind,src={{ matrix_synapse_ext_path }}/matrix_e2ee_filter.py,dst={{ matrix_synapse_in_container_python_packages_path }}/matrix_e2ee_filter.py,ro"]
  34. }}
  35. matrix_synapse_additional_loggers_auto: >
  36. {{
  37. matrix_synapse_additional_loggers_auto
  38. +
  39. [{'name': 'matrix_e2ee_filter', 'level': 'INFO'}]
  40. }}