From 44682a9e0f162ede99ad6ab12ab33b07cd499af1 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Mon, 21 Oct 2024 10:52:17 +0300 Subject: [PATCH] Disable automatic user creation when MAS migration is in progress Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3647 --- roles/custom/matrix-user-creator/tasks/setup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/custom/matrix-user-creator/tasks/setup.yml b/roles/custom/matrix-user-creator/tasks/setup.yml index d63177736..55e1dedef 100644 --- a/roles/custom/matrix-user-creator/tasks/setup.yml +++ b/roles/custom/matrix-user-creator/tasks/setup.yml @@ -31,7 +31,7 @@ # Suppress logging to avoid dumping the credentials to the shell no_log: true -- when: matrix_authentication_service_enabled | bool +- when: matrix_authentication_service_enabled and not matrix_authentication_service_migration_in_progress block: - name: Ensure Matrix Authentication Service is started before creating Matrix users ansible.builtin.service: