1
0

generate_disks_legacy.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. - console.h
  9. - crypto.h
  10. - general.h
  11. - name: Set trust file to ipxe ca
  12. set_fact:
  13. trust_files: "{{ cert_dir }}/{{ ipxe_ca_filename }}"
  14. when: not generate_signatures
  15. - name: Combine trust args if set
  16. set_fact:
  17. trust_files: "{{ cert_dir }}/{{ ipxe_ca_filename }},{{ cert_dir }}/{{ cert_file_filename }}"
  18. when: generate_signatures | bool
  19. - name: Compile iPXE bootloader for Legacy BIOS
  20. shell: |
  21. make clean
  22. make EMBED={{ bootloader_filename }} TRUST={{ trust_files }} bin/ipxe.dsk bin/ipxe.iso bin/ipxe.lkrn bin/ipxe.usb bin/ipxe.kpxe bin/undionly.kpxe
  23. args:
  24. chdir: "{{ ipxe_source_dir }}/src"
  25. tags:
  26. - skip_ansible_lint
  27. - name: Copy iPXE files for Legacy BIOS to http directory
  28. copy:
  29. src: "{{ ipxe_source_dir }}/src/bin/ipxe{{ item }}"
  30. dest: "{{ netbootxyz_root }}/ipxe/{{ bootloader_filename }}{{ item }}"
  31. remote_src: True
  32. with_items:
  33. - ".dsk"
  34. - ".iso"
  35. - ".lkrn"
  36. - ".usb"
  37. - ".kpxe"
  38. when: bootloader_filename != "netboot.xyz-packet"
  39. - name: Copy iPXE files for Legacy BIOS to http directory
  40. copy:
  41. src: "{{ ipxe_source_dir }}/src/bin/ipxe{{ item }}"
  42. dest: "{{ netbootxyz_root }}/ipxe/{{ bootloader_filename }}{{ item }}"
  43. remote_src: True
  44. with_items:
  45. - ".kpxe"
  46. when: bootloader_filename == "netboot.xyz-packet"
  47. - name: Copy undionly.kpxe for Legacy BIOS to http directory
  48. copy:
  49. src: "{{ ipxe_source_dir }}/src/bin/undionly.kpxe"
  50. dest: "{{ netbootxyz_root }}/ipxe/{{ bootloader_filename }}-undionly.kpxe"
  51. remote_src: True
  52. when: bootloader_filename != "netboot.xyz-packet"