From 6b6b74afa9550c9b9476fe51c501a7868c6e3765 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sun, 8 Mar 2026 15:26:21 +0200 Subject: [PATCH] matrix-synapse-admin: fail when enabled with non-Synapse homeserver --- .../matrix-synapse-admin/tasks/validate_config.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/custom/matrix-synapse-admin/tasks/validate_config.yml b/roles/custom/matrix-synapse-admin/tasks/validate_config.yml index 8537663bc..77439ef8d 100644 --- a/roles/custom/matrix-synapse-admin/tasks/validate_config.yml +++ b/roles/custom/matrix-synapse-admin/tasks/validate_config.yml @@ -6,6 +6,16 @@ --- +- name: Fail if matrix-synapse-admin is enabled for a non-Synapse homeserver + ansible.builtin.fail: + msg: >- + matrix-synapse-admin can only be used with the Synapse homeserver implementation. + Your configuration has `matrix_synapse_admin_enabled: true`, but `matrix_homeserver_implementation` is set to `{{ matrix_homeserver_implementation }}`. + Disable matrix-synapse-admin or switch to Synapse. + when: + - matrix_synapse_admin_enabled | bool + - matrix_homeserver_implementation != 'synapse' + - name: (Deprecation) Catch and report renamed matrix-synapse-admin settings ansible.builtin.fail: msg: >-