From fd367476533a86df98253bd0f185405231dfe114 Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Fri, 4 Dec 2015 13:24:16 -0500 Subject: [PATCH] Fix boolean conditionals for Ansible 2.0 with git repo copies Repository copies were failing on Ansible 2.0 due to the conditional include containing an or statement with shorthand boolean true statements. This apparently is problematic, and adding the longer conditional expression worked as expected. Additionally, this commit serves as a canary for an upcoming python-ironicclient change listed as depends-on. Change-Id: I51a863d270aae57e76b7397cb1b83c5dbd85f867 Depends-On: Ic77a86196d5bcd956f0a3ae517200824a4d70aa8 --- playbooks/roles/bifrost-prep-for-install/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/bifrost-prep-for-install/tasks/main.yml b/playbooks/roles/bifrost-prep-for-install/tasks/main.yml index fb83e5ce8..5b857e55f 100644 --- a/playbooks/roles/bifrost-prep-for-install/tasks/main.yml +++ b/playbooks/roles/bifrost-prep-for-install/tasks/main.yml @@ -18,4 +18,4 @@ when: ci_testing_zuul | bool == false and copy_from_local_path | bool == false - name: "Copy from local path" include: local_path.yaml - when: ci_testing_zuul | bool or copy_from_local_path | bool + when: ci_testing_zuul | bool == true or copy_from_local_path | bool == true