--- - name: Gathering facts setup: - name: Gather variables for each operating system include_vars: "{{ item }}" with_first_found: - "{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml" - "{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml" - "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version | lower }}.yml" - "{{ ansible_distribution | lower }}.yml" - "{{ ansible_os_family | lower }}.yml" - name: Create iPXE file directories file: path: "{{ item }}" state: directory with_items: - "{{ netbootxyz_root }}/ipxe" - name: Copy helper apps copy: src: "{{ item }}" dest: "{{ netbootxyz_root }}" with_items: - memdisk - wimboot - name: Install required packages package: name: "{{ item }}" state: latest with_items: "{{ netbootxyz_packages }}" - name: Check out latest iPXE sources git: repo: "{{ ipxe_repo }}" dest: "{{ ipxe_source_dir }}" version: "{{ ipxe_branch }}" - name: Copy iPXE Bootloader template to iPXE source directory template: src: disks/ipxe-bootloader.j2 dest: "{{ ipxe_source_dir }}/src/ipxe-bootloader" - name: Touch iPXE config local files file: path: "{{ ipxe_source_dir }}/{{ item }}" state: touch with_items: - src/config/local/console.h - src/config/local/umalloc.h - src/config/local/nap.h - src/config/local/timer.h - src/config/local/branding.h - src/config/local/serial.h - src/config/local/reboot.h - src/config/local/sanboot.h - src/config/local/fault.h - src/config/local/dhcp.h - src/config/local/sideband.h - src/config/local/entropy.h - src/config/local/crypto.h - src/config/local/usb.h - src/config/local/settings.h