From 54b7f2804242b1d299cc7b74838627047490f576 Mon Sep 17 00:00:00 2001 From: blazejpass Date: Tue, 28 Nov 2023 12:21:58 +0100 Subject: [PATCH] Add when WITH_TLDRAW rule --- ansible/roles/schulcloud-server-core/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/roles/schulcloud-server-core/tasks/main.yml b/ansible/roles/schulcloud-server-core/tasks/main.yml index 47ace3c6f85..4840ec78474 100644 --- a/ansible/roles/schulcloud-server-core/tasks/main.yml +++ b/ansible/roles/schulcloud-server-core/tasks/main.yml @@ -161,12 +161,14 @@ kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: tldraw-deployment.yml.j2 + when: WITH_TLDRAW is defined and WITH_TLDRAW|bool - name: TlDraw server service kubernetes.core.k8s: kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: tldraw-server-svc.yml.j2 + when: WITH_TLDRAW is defined and WITH_TLDRAW|bool - name: Tldraw ingress kubernetes.core.k8s: @@ -174,3 +176,4 @@ namespace: "{{ NAMESPACE }}" template: tldraw-ingress.yml.j2 apply: yes + when: WITH_TLDRAW is defined and WITH_TLDRAW|bool