Install from source skipped when run with ruby_install_from_source=True
Closed this issue · 4 comments
When I set ruby_install_from_source=True
the install-from-source.yml contents are always skipped.
Appears that the when clause is not being evaluated as a boolean.
@rideallday - Are you setting that boolean in an inventory variable inline with other vars? If so, Ansible sets that True
to a string ("True"
), and that's likely the cause. Can you set the variable some other way, either using YAML inventory (which sets booleans appropriately), or via some other means?
I am setting in a yaml vars file like this:
ruby_install_from_source: True
(that is interesting/annoying about the inventories- I will keep that in mind in future tho!)
I think the issue is that the true in == True
is being evaluated as a string rather than a boolean.
See the piece in here setting the var 'epic'. It
http://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html#the-when-statement
This is positively ancient, but it explains it better then I can.
ansible/ansible#9369
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.