Forum Navigation
You need to log in to create posts and topics.

Kubespray getting error: "msg": "true isn't a bool" for download_run_once


User gets the following error when trying to install kubernetes with kubespray and passing download_run_once parameter

TASK [kubernetes/preinstall : Stop if known booleans are set as strings (Use JSON format on CLI: -e “{‘key’: true }”)] **************************************************************************************************
failed: [node1] (item={u’name’: u’download_run_once’, u’value’: u’true’}) => {
“ansible_loop_var”: “item”,
“assertion”: “item.value|type_debug == ‘bool’”,
“changed”: false,
“evaluated_to”: false,
“item”: {
“name”: “download_run_once”,
“value”: “true”
“msg”: “true isn’t a bool”


kubespray for offline install is not accurate:

when passing variable to ansible playbook util you need to specify: True with capital T and -e with Apostrophes

ansible-playbook -e “download_run_once=True” -i hosts_file kubespray/playbooks/cluster.yml


The same also for settings: -e download_localhost=true


All content available through this Web Site is provided on an “AS IS” and “AS AVAILABLE” basis, with all faults. Tracston LTD makes no warranty or representation with respect to the quality, accuracy, or availability of the Web Site or any of its content.