diff --git a/defaults/main.yml b/defaults/main.yml index a2dd894cb4c912834a29a8b2ce4ffae943b081f7..c190653e6b34e07ec36e5be61b9ccee3654d80d9 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -26,13 +26,10 @@ live_kernel_path: "{{ tftp_root }}/images/live/" custom_pxe_version: v0.0.6 custom_pxe_url: "https://artifactory.esss.lu.se/artifactory/list/swi-pkg/centos/centos-pxe/{{ custom_pxe_version }}/" - - rh_version: - centos7 - centos8 - # tags to to make links (aka PXE menu filename) autoinstall_grub_menus: diff --git a/tasks/setup-pxe.yml b/tasks/setup-pxe.yml index 8d0a82d9b15404b2b8be7a492ef9bc6249860626..08c3d989fdd452e17c3e556da9997c9d92e8bb2a 100644 --- a/tasks/setup-pxe.yml +++ b/tasks/setup-pxe.yml @@ -135,6 +135,17 @@ - setup - livecd +- name: get kernel and initrd for Live PXE env + get_url: + url: "{{ custom_pxe_url }}/{{ item }}" + dest: "{{ pxe_kernel_path }}/{{ item }}" + force: true + with_items: + - "vmlinuz-custom" + - "initramfs-custom" + tags: + - setup + - name: setup kickstart repo file: path: "{{ kickstart_root }}/{{ item }}"