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.
 
 

42 Zeilen
1.5 KiB

  1. ---
  2. - name: Fail if Synapse Simple Antispam blocked homeservers is not set
  3. fail:
  4. msg: "Synapse Simple Antispam is enabled, but no blocked homeservers have been set in matrix_synapse_ext_spam_checker_synapse_simple_antispam_config_blocked_homeservers"
  5. when: "matrix_synapse_ext_spam_checker_synapse_simple_antispam_config_blocked_homeservers|length == 0"
  6. - name: Ensure git installed (RedHat)
  7. yum:
  8. name:
  9. - git
  10. state: present
  11. update_cache: no
  12. when: "ansible_os_family == 'RedHat'"
  13. - name: Ensure git installed (Debian)
  14. apt:
  15. name:
  16. - openssl
  17. state: present
  18. update_cache: no
  19. when: "ansible_os_family == 'Debian'"
  20. - name: Clone synapse-simple-antispam git repository
  21. git:
  22. repo: "{{ matrix_synapse_ext_spam_checker_synapse_simple_antispam_git_repository_url }}"
  23. version: "{{ matrix_synapse_ext_spam_checker_synapse_simple_antispam_git_version }}"
  24. dest: "{{ matrix_synapse_ext_path }}/synapse-simple-antispam"
  25. become: true
  26. become_user: "{{ matrix_user_username }}"
  27. - set_fact:
  28. matrix_synapse_spam_checker:
  29. module: "synapse_simple_antispam.AntiSpamInvites"
  30. config:
  31. blocked_homeservers: "{{ matrix_synapse_ext_spam_checker_synapse_simple_antispam_config_blocked_homeservers }}"
  32. matrix_synapse_container_extra_arguments: >
  33. {{ matrix_synapse_container_extra_arguments|default([]) }}
  34. +
  35. ["--mount type=bind,src={{ matrix_synapse_ext_path }}/synapse-simple-antispam/synapse_simple_antispam,dst={{ matrix_synapse_in_container_python_packages_path }}/synapse_simple_antispam,ro"]