
Ansible versions 2.9.12 and 2.8.14 change default behavior in regards to applying umask to ansible-created files. Due to this, newly created files may have overly restrictive permissions, causing issues in use cases where files need to be world-readable such as contents of /httpboot folder in Ironic. This patch adds explicit setting of permissions to ensure Ironic network boot continues to work correctly. Change-Id: If617a305d4efc09335f675f1ec68e07cf81970c6
55 lines
1.4 KiB
YAML
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 == true
|