From bd60df97aa3001fe2597ae6eeacc49310019aa2e Mon Sep 17 00:00:00 2001
From: Maxime Lavandier <maxime.l@live.fr>
Date: Sat, 1 Aug 2020 08:29:48 +0100
Subject: [PATCH] Fix download calico policy condition (#6474)

---
 roles/download/defaults/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/download/defaults/main.yml b/roles/download/defaults/main.yml
index 847c7be88..351f08a2b 100644
--- a/roles/download/defaults/main.yml
+++ b/roles/download/defaults/main.yml
@@ -783,7 +783,7 @@ downloads:
     - k8s-cluster
 
   calico_policy:
-    enabled: "{{ enable_network_policy or kube_network_plugin == 'canal' }}"
+    enabled: "{{ enable_network_policy and kube_network_plugin in ['calico', 'canal'] }}"
     container: true
     repo: "{{ calico_policy_image_repo }}"
     tag: "{{ calico_policy_image_tag }}"
-- 
GitLab