2019-05-17 23:36:54 +02:00
---
- name : Fail if REST Auth endpoint not configured
2022-07-18 09:39:08 +02:00
ansible.builtin.fail :
2019-05-17 23:36:54 +02:00
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."
when : "matrix_synapse_ext_password_provider_rest_auth_endpoint == ''"
- name : Download matrix-synapse-rest-auth
2022-07-18 09:39:08 +02:00
ansible.builtin.get_url :
2019-05-17 23:36:54 +02:00
url : "{{ matrix_synapse_ext_password_provider_rest_auth_download_url }}"
dest : "{{ matrix_synapse_ext_path }}/rest_auth_provider.py"
force : true
mode : 0440
2023-02-17 16:16:50 +01:00
owner : "{{ matrix_synapse_uid }}"
group : "{{ matrix_synapse_gid }}"
2022-04-19 21:01:14 +02:00
register : result
2022-11-04 15:44:29 +01:00
retries : "{{ devture_playbook_help_geturl_retries_count }}"
delay : "{{ devture_playbook_help_geturl_retries_delay }}"
2022-04-19 21:01:14 +02:00
until : result is not failed
2019-05-17 23:36:54 +02:00
2022-07-18 09:39:08 +02:00
- ansible.builtin.set_fact :
2019-05-17 23:36:54 +02:00
matrix_synapse_password_providers_enabled : true
2019-05-29 08:59:50 +02:00
matrix_synapse_container_extra_arguments : >
2022-05-18 14:43:39 +02:00
{{
2022-07-18 10:22:05 +02:00
matrix_synapse_container_extra_arguments | default([])
2022-05-18 14:43:39 +02:00
+
[ "--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" ]
}}
2019-05-17 23:36:54 +02:00
2023-08-30 11:50:47 +02:00
matrix_synapse_additional_loggers_auto : >
2022-05-18 14:43:39 +02:00
{{
2023-08-30 11:50:47 +02:00
matrix_synapse_additional_loggers_auto
2022-05-18 14:43:39 +02:00
+
[ {'name': 'rest_auth_provider', 'level' : 'INFO' }]
}}