Merge "Fix when logic for boolean handling"

This commit is contained in:
Jenkins 2015-06-18 12:04:33 +00:00 committed by Gerrit Code Review
commit f97d71368a

View File

@ -247,11 +247,7 @@
when: test_core_os_image_present.stat.exists == false
- name: "Download cirros to use for deployment if requested"
get_url: url=http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img dest="{{deploy_image}}"
# TODO(TheJulia): We may want to revise any boolean operators to
# comparison statements like the one below when they are able to be
# set via the command line as there are oddities across ansible
# versions with auto-translation of true/false values.
when: use_cirros == true or "'true' in use_cirros"
when: "{{use_cirros|bool}}"
- name: "Test if Ubuntu 14.04 server cloud amd64 is present"
stat: path={{ deploy_image }}
register: test_os_image_present