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.
 
 

44 lines
1.6 KiB

  1. # SPDX-FileCopyrightText: 2018 - 2023 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2019 Michael Haak
  3. # SPDX-FileCopyrightText: 2020 Chris van Dijk
  4. # SPDX-FileCopyrightText: 2022 Nikita Chernyi
  5. #
  6. # SPDX-License-Identifier: AGPL-3.0-or-later
  7. ---
  8. - name: Fail if REST Auth endpoint not configured
  9. ansible.builtin.fail:
  10. msg: "You have enabled the REST Auth password provider, but have not configured its endpoint in the `matrix_synapse_ext_password_provider_rest_auth_endpoint` variable. Consult the documentation."
  11. when: "matrix_synapse_ext_password_provider_rest_auth_endpoint == ''"
  12. - name: Download matrix-synapse-rest-auth
  13. ansible.builtin.get_url:
  14. url: "{{ matrix_synapse_ext_password_provider_rest_auth_download_url }}"
  15. dest: "{{ matrix_synapse_ext_path }}/rest_auth_provider.py"
  16. force: true
  17. mode: '0440'
  18. owner: "{{ matrix_synapse_uid }}"
  19. group: "{{ matrix_synapse_gid }}"
  20. register: result
  21. retries: "{{ devture_playbook_help_geturl_retries_count }}"
  22. delay: "{{ devture_playbook_help_geturl_retries_delay }}"
  23. until: result is not failed
  24. - ansible.builtin.set_fact:
  25. matrix_synapse_password_providers_enabled: true
  26. matrix_synapse_container_extra_arguments: >
  27. {{
  28. matrix_synapse_container_extra_arguments | default([])
  29. +
  30. ["--mount type=bind,src=" + matrix_synapse_ext_path + "/rest_auth_provider.py,dst=" + matrix_synapse_in_container_python_packages_path + "/rest_auth_provider.py,ro"]
  31. }}
  32. matrix_synapse_additional_loggers_auto: >
  33. {{
  34. matrix_synapse_additional_loggers_auto
  35. +
  36. [{'name': 'rest_auth_provider', 'level': 'INFO'}]
  37. }}