2019-05-17 21:36:54 +00:00
---
- name : Fail if REST Auth endpoint not configured
2022-07-18 07:39:08 +00:00
ansible.builtin.fail :
2019-05-17 21:36:54 +00: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 07:39:08 +00:00
ansible.builtin.get_url :
2019-05-17 21:36:54 +00:00
url : "{{ matrix_synapse_ext_password_provider_rest_auth_download_url }}"
dest : "{{ matrix_synapse_ext_path }}/rest_auth_provider.py"
force : true
mode : 0440
owner : "{{ matrix_user_username }}"
2020-05-01 17:59:32 +00:00
group : "{{ matrix_user_groupname }}"
2022-04-19 19:01:14 +00:00
register : result
2022-11-04 14:44:29 +00:00
retries : "{{ devture_playbook_help_geturl_retries_count }}"
delay : "{{ devture_playbook_help_geturl_retries_delay }}"
2022-04-19 19:01:14 +00:00
until : result is not failed
2019-05-17 21:36:54 +00:00
2022-07-18 07:39:08 +00:00
- ansible.builtin.set_fact :
2019-05-17 21:36:54 +00:00
matrix_synapse_password_providers_enabled : true
2019-05-29 06:59:50 +00:00
matrix_synapse_container_extra_arguments : >
2022-05-18 12:43:39 +00:00
{{
2022-07-18 08:22:05 +00:00
matrix_synapse_container_extra_arguments | default([])
2022-05-18 12:43:39 +00: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 21:36:54 +00:00
matrix_synapse_additional_loggers : >
2022-05-18 12:43:39 +00:00
{{
matrix_synapse_additional_loggers
+
[ {'name': 'rest_auth_provider', 'level' : 'INFO' }]
}}