generate_disks_linux.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 Linux bootloader for Legacy BIOS
  20. shell: |
  21. make clean
  22. make EMBED={{ bootloader_filename }} \
  23. TRUST={{ trust_files }} \
  24. bin-x86_64-linux/slirp.linux
  25. args:
  26. chdir: "{{ ipxe_source_dir }}/src"
  27. tags:
  28. - skip_ansible_lint
  29. when: ipxe_debug_enabled | bool == false
  30. - name: Compile iPXE Linux bootloader for Legacy BIOS with debug flags
  31. shell: |
  32. make clean
  33. make EMBED={{ bootloader_filename }} \
  34. DEBUG={{ ipxe_debug_options }} \
  35. TRUST={{ trust_files }} \
  36. bin-x86_64-linux/slirp.linux
  37. args:
  38. chdir: "{{ ipxe_source_dir }}/src"
  39. tags:
  40. - skip_ansible_lint
  41. when: ipxe_debug_enabled | bool
  42. - name: Copy iPXE linux binary for Legacy BIOS to http directory
  43. copy:
  44. src: "{{ ipxe_source_dir }}/src/bin-x86_64-linux/slirp.linux"
  45. dest: "{{ netbootxyz_root }}/ipxe/{{ bootloader_filename }}-linux.bin"
  46. remote_src: True
  47. when: bootloader_filename != "netboot.xyz-packet"