Fix bool check assert

pull/1756/head
ant31 2017-10-06 17:02:38 +00:00
parent d13b07ba59
commit 1be4c1935a
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@
- name: "Stop if known booleans are set as strings (Use JSON format on CLI: -e \"{'key': true }\")" - name: "Stop if known booleans are set as strings (Use JSON format on CLI: -e \"{'key': true }\")"
assert: 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 run_once: yes
with_items: with_items:
- kubeadm_enabled - kubeadm_enabled