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.
 
 

37 Zeilen
1.3 KiB

  1. ---
  2. - name: Fail if REST Auth endpoint not configured
  3. ansible.builtin.fail:
  4. 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."
  5. when: "matrix_synapse_ext_password_provider_rest_auth_endpoint == ''"
  6. - name: Download matrix-synapse-rest-auth
  7. ansible.builtin.get_url:
  8. url: "{{ matrix_synapse_ext_password_provider_rest_auth_download_url }}"
  9. dest: "{{ matrix_synapse_ext_path }}/rest_auth_provider.py"
  10. force: true
  11. mode: 0440
  12. owner: "{{ matrix_user_username }}"
  13. group: "{{ matrix_user_groupname }}"
  14. register: result
  15. retries: "{{ matrix_geturl_retries_count }}"
  16. delay: "{{ matrix_geturl_retries_delay }}"
  17. until: result is not failed
  18. - ansible.builtin.set_fact:
  19. matrix_synapse_password_providers_enabled: true
  20. matrix_synapse_container_extra_arguments: >
  21. {{
  22. matrix_synapse_container_extra_arguments | default([])
  23. +
  24. ["--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"]
  25. }}
  26. matrix_synapse_additional_loggers: >
  27. {{
  28. matrix_synapse_additional_loggers
  29. +
  30. [{'name': 'rest_auth_provider', 'level': 'INFO'}]
  31. }}