bifrost/playbooks/roles/bifrost-prep-for-install/tasks/main.yml
Julia Kreger fd36747653 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
2015-12-08 10:28:07 -05:00

22 lines
887 B
YAML

# Copyright (c) 2015 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
- name: "Download via GIT"
include: git_download.yaml
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 == true or copy_from_local_path | bool == true