From fca2f2e036804b336e184edcd2d8cc93b3a630a1 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Fri, 11 Jan 2019 01:03:35 +0200 Subject: [PATCH] Catch misconfigured REST Auth password provider during installation --- .../tasks/setup/synapse/ext/setup_synapse_ext_rest_auth.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/matrix-server/tasks/setup/synapse/ext/setup_synapse_ext_rest_auth.yml b/roles/matrix-server/tasks/setup/synapse/ext/setup_synapse_ext_rest_auth.yml index 09a5708d..9cdb5a2d 100644 --- a/roles/matrix-server/tasks/setup/synapse/ext/setup_synapse_ext_rest_auth.yml +++ b/roles/matrix-server/tasks/setup/synapse/ext/setup_synapse_ext_rest_auth.yml @@ -4,6 +4,11 @@ # Tasks related to setting up matrix-synapse-rest-auth # +- name: Fail if REST Auth enabled, but endpoint not configured + fail: + 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_enabled and matrix_synapse_ext_password_provider_rest_auth_endpoint == ''" + - name: Download matrix-synapse-rest-auth get_url: url: "{{ matrix_synapse_ext_password_provider_rest_auth_download_url }}"