Riccardo Pittau e4d0325b2f Fix error 601
Don't compare to literal True/False

Change-Id: I671978ac95de03d80b059d42f188e9fc9aecb4b4
2020-09-02 11:41:11 +02:00

55 lines
1.4 KiB
YAML

# Copyright (c) 2016 Hewlett Packard Enterprise Development LP.
#
# 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: Create {{ ipxe_dir }}
file:
name={{ ipxe_dir }}
state=directory
owner=root
group=root
mode=0755
- name: Get iPXE files
get_url:
url: "https://boot.ipxe.org/{{ item }}"
dest: "{{ ipxe_dir }}/{{ item }}"
force: yes
owner: ironic
group: ironic
mode: 0644
register: ipxe_files_download_done
until: ipxe_files_download_done is succeeded
retries: 5
delay: 10
loop:
- undionly.kpxe
- ipxe.pxe
- name: Get iPXE EFI binary
get_url:
url: "https://boot.ipxe.org/{{ item }}"
dest: "{{ ipxe_dir }}/{{ item }}"
force: yes
owner: ironic
group: ironic
mode: 0644
register: ipxe_efi_binary_download_done
until: ipxe_efi_binary_download_done is succeeded
retries: 5
delay: 10
loop:
- "{{ ipxe_efi_binary }}"
when: enable_uefi_ipxe | bool