Read-only archive. These discussions are from Tracston's earlier
technical forum and are kept online because the answers are still useful.
New replies are closed. Need help with something like this?
Talk to us.
Question
26 Oct 2020
Problem
When specifying true/ false for ansible playbook variables sometimes error can be occurred during runtime example:
“item”: {
“name”: “my_item”,
“value”: “true”
},
“msg”: “true isn’t a bool”
}
Solution
Pass variable to ansible playbook util you need to specify: True with capital T and -e with Apostrophes
ansible-playbook -e “my_item=True”
Need this fixed properly?
We do this for a living.
Kubernetes, DevOps and platform engineering, delivered in days — not another weekend lost to a stack trace.
Start a project →