1
0

generate_disks_legacy.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.lkrn 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. - ".lkrn"
  35. - ".kpxe"
  36. when: bootloader_filename != "netboot.xyz-packet"
  37. - name: Copy iPXE files for Legacy BIOS to http directory
  38. copy:
  39. src: "{{ ipxe_source_dir }}/src/bin/ipxe{{ item }}"
  40. dest: "{{ netbootxyz_root }}/ipxe/{{ bootloader_filename }}{{ item }}"
  41. remote_src: True
  42. with_items:
  43. - ".kpxe"
  44. when: bootloader_filename == "netboot.xyz-packet"
  45. - name: Copy undionly.kpxe for Legacy BIOS to http directory
  46. copy:
  47. src: "{{ ipxe_source_dir }}/src/bin/undionly.kpxe"
  48. dest: "{{ netbootxyz_root }}/ipxe/{{ bootloader_filename }}-undionly.kpxe"
  49. remote_src: True
  50. when: bootloader_filename != "netboot.xyz-packet"