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.
 
 

40 line
1.2 KiB

  1. # SPDX-FileCopyrightText: 2021 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2022 - 2023 Slavi Pantaleev
  3. # SPDX-FileCopyrightText: 2022 Marko Weltzer
  4. # SPDX-FileCopyrightText: 2022 Sebastian Gumprich
  5. #
  6. # SPDX-License-Identifier: AGPL-3.0-or-later
  7. ---
  8. - name: Ensure git installed
  9. ansible.builtin.package:
  10. name: git
  11. state: present
  12. - name: Clone mjolnir-antispam git repository
  13. ansible.builtin.git:
  14. repo: "{{ matrix_synapse_ext_spam_checker_mjolnir_antispam_git_repository_url }}"
  15. version: "{{ matrix_synapse_ext_spam_checker_mjolnir_antispam_git_version }}"
  16. dest: "{{ matrix_synapse_ext_path }}/mjolnir"
  17. become: true
  18. become_user: "{{ matrix_synapse_username }}"
  19. - ansible.builtin.set_fact:
  20. matrix_synapse_modules: >
  21. {{
  22. matrix_synapse_modules | default([])
  23. +
  24. [{
  25. "module": "mjolnir.Module",
  26. "config": matrix_synapse_ext_spam_checker_mjolnir_antispam_config,
  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 + "/mjolnir/synapse_antispam/mjolnir,dst=" + matrix_synapse_in_container_python_packages_path + "/mjolnir,ro"]
  34. }}