diff --git a/roles/kubernetes/preinstall/tasks/verify-settings.yml b/roles/kubernetes/preinstall/tasks/verify-settings.yml index 9a04e2016a015fce97694a290955a1ac0ae45656..c3609245be04568cbda23e44e109134da22d2795 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