From aa4a3d7afddd2e9b6ce23aa35009e0ba3118bcee Mon Sep 17 00:00:00 2001
From: rtsp <git@rtsp.us>
Date: Mon, 10 Jan 2022 16:35:12 +0700
Subject: [PATCH] Fix container engine still installed on dedicated etcd node
 even if `etcd_deployment_type: host` (#8386)

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

diff --git a/roles/kubespray-defaults/defaults/main.yaml b/roles/kubespray-defaults/defaults/main.yaml
index 4cb219799..6acc9a956 100644
--- a/roles/kubespray-defaults/defaults/main.yaml
+++ b/roles/kubespray-defaults/defaults/main.yaml
@@ -258,7 +258,7 @@ kubelet_shutdown_grace_period: 60s
 kubelet_shutdown_grace_period_critical_pods: 20s
 
 # Whether to deploy the container engine
-deploy_container_engine: inventory_hostname in groups['k8s_cluster'] or etcd_deployment_type != 'host'
+deploy_container_engine: "{{ inventory_hostname in groups['k8s_cluster'] or etcd_deployment_type != 'host' }}"
 
 # Container for runtime
 container_manager: containerd
-- 
GitLab