From 1be4c1935a1e2c311692d5f6bfe4abff14d91aed Mon Sep 17 00:00:00 2001
From: ant31 <2t.antoine@gmail.com>
Date: Fri, 6 Oct 2017 17:02:38 +0000
Subject: [PATCH] Fix bool check assert

---
 roles/kubernetes/preinstall/tasks/verify-settings.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/roles/kubernetes/preinstall/tasks/verify-settings.yml b/roles/kubernetes/preinstall/tasks/verify-settings.yml
index 9a04e2016..c3609245b 100644
--- a/roles/kubernetes/preinstall/tasks/verify-settings.yml
+++ b/roles/kubernetes/preinstall/tasks/verify-settings.yml
@@ -30,7 +30,8 @@
 
 - name: "Stop if known booleans are set as strings (Use JSON format on CLI: -e \"{'key': true }\")"
   assert:
-    that: item|type_debug == 'bool'
+    that: hostvars[inventory_hostname][item]|type_debug == 'bool'
+    msg: "{{hostvars[inventory_hostname][item]}} isn't a bool"
   run_once: yes
   with_items:
     - kubeadm_enabled
-- 
GitLab