generate_disks_legacy.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ---
  2. - name: Copy netboot.xyz local legacy iPXE configs
  3. copy:
  4. src: "ipxe/local/{{ item }}"
  5. dest: "{{ ipxe_source_dir }}/src/config/local/{{ item }}"
  6. with_items:
  7. - colour.h
  8. - crypto.h
  9. - general.h
  10. - name: Compile iPXE bootloader for Legacy BIOS
  11. shell: "{{ item }}"
  12. with_items:
  13. - make clean
  14. - make EMBED=ipxe-bootloader bin/ipxe.dsk bin/ipxe.iso bin/ipxe.lkrn bin/ipxe.usb bin/ipxe.kpxe bin/undionly.kpxe
  15. args:
  16. chdir: "{{ ipxe_source_dir }}/src"
  17. tags:
  18. - skip_ansible_lint
  19. - name: Copy iPXE files for Legacy BIOS to http directory
  20. copy:
  21. src: "{{ ipxe_source_dir }}/src/bin/ipxe{{ item }}"
  22. dest: "{{ netbootxyz_root }}/ipxe/{{ site_name }}{{ item }}"
  23. remote_src: True
  24. with_items:
  25. - ".dsk"
  26. - ".iso"
  27. - ".lkrn"
  28. - ".usb"
  29. - ".kpxe"
  30. - name: Copy undionly.kpxe for Legacy BIOS to http directory
  31. copy:
  32. src: "{{ ipxe_source_dir }}/src/bin/undionly.kpxe"
  33. dest: "{{ netbootxyz_root }}/ipxe/{{ site_name }}-undionly.kpxe"
  34. remote_src: True