From 68c615280968fdbf406b2b00d4b08999d543a368 Mon Sep 17 00:00:00 2001 From: Gordon Nicholas Date: Sat, 21 Dec 2024 00:46:36 +0100 Subject: [PATCH] N21-2103 fix cronjob tasks condition --- ansible/roles/media-licenses/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/media-licenses/tasks/main.yml b/ansible/roles/media-licenses/tasks/main.yml index eeb95f678b..c2f6137e56 100644 --- a/ansible/roles/media-licenses/tasks/main.yml +++ b/ansible/roles/media-licenses/tasks/main.yml @@ -1,4 +1,5 @@ - name: media licenses sync CronJob ConfigMap + when: WITH_MEDIA_LICENSES is defined and WITH_MEDIA_LICENSES|bool == true kubernetes.core.k8s: kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" @@ -8,6 +9,7 @@ - configmap - name: media licenses sync CronJob + when: WITH_MEDIA_LICENSES is defined and WITH_MEDIA_LICENSES|bool == true kubernetes.core.k8s: kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}"