From eb906337b52f35f5a0a8da0968b5c4b8bcedd451 Mon Sep 17 00:00:00 2001 From: mamutmk5 <3045922+mamutmk5@users.noreply.github.com> Date: Thu, 24 Oct 2024 14:55:59 +0200 Subject: [PATCH] BC-8312 - fix state for External Secret for TLDraw server (#5312) --- ansible/roles/schulcloud-server-core/tasks/main.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ansible/roles/schulcloud-server-core/tasks/main.yml b/ansible/roles/schulcloud-server-core/tasks/main.yml index 89f5e60f84c..28c8a15460b 100644 --- a/ansible/roles/schulcloud-server-core/tasks/main.yml +++ b/ansible/roles/schulcloud-server-core/tasks/main.yml @@ -376,12 +376,10 @@ kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: tldraw-server-external-secret.yml.j2 - state: "{{ 'present' if - WITH_BRANCH_MONGO_DB_MANAGEMENT is defined and WITH_BRANCH_MONGO_DB_MANAGEMENT|bool and - WITH_TLDRAW is defined and WITH_TLDRAW|bool - else 'absent'}}" + state: "{{ 'present' if WITH_BRANCH_MONGO_DB_MANAGEMENT is defined and WITH_BRANCH_MONGO_DB_MANAGEMENT|bool else 'absent'}}" when: - - EXTERNAL_SECRETS_OPERATOR is defined and EXTERNAL_SECRETS_OPERATOR|bool + - EXTERNAL_SECRETS_OPERATOR is defined and EXTERNAL_SECRETS_OPERATOR|bool + - WITH_TLDRAW is defined and WITH_TLDRAW|bool tags: - 1password