mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-08-26 21:27:50 -05:00
Since secureboot directories are removed after ISO/USB generation, the index page and checksums should only reference the self-contained ISO/IMG files. Remove: - Loose binary entries (shim, ipxe, snponly, autoexec) from bootloader definitions in defaults/main.yml - Subdirectory link logic from index.html.j2 template - Secureboot-specific checksum tasks from generate_checksums.yml - Secureboot sections from checksums.txt.j2 template The autoexec.ipxe at the ipxe root is picked up automatically by the existing flat-file checksum logic.
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
---
|
|
- name: Register a listing of all created iPXE bootloaders
|
|
ansible.builtin.shell: ls -p -I {{ checksums_filename }} {{ netbootxyz_root }}/ipxe/ | grep -v /
|
|
register: netboot_disks
|
|
|
|
- name: Generate date
|
|
ansible.builtin.command: date
|
|
register: current_date
|
|
|
|
- name: Gather stat listing of directory
|
|
ansible.builtin.command: sha256sum -b {{ item }}
|
|
with_items:
|
|
- "{{ netboot_disks.stdout_lines }}"
|
|
args:
|
|
chdir: "{{ netbootxyz_root }}/ipxe/"
|
|
register: netboot_disks_stat
|
|
|
|
- name: Generate ipxe disk checksums
|
|
ansible.builtin.template:
|
|
src: checksums.txt.j2
|
|
dest: "{{ netbootxyz_root }}/ipxe/{{ checksums_filename }}"
|
|
|
|
- name: Generate site name banner for index
|
|
ansible.builtin.shell: toilet -f standard {{ site_name | quote }} --html | grep span
|
|
register: index_title
|
|
when: ansible_facts['os_family'] == "Debian"
|
|
|
|
- name: Reset bootloader filename to first in list
|
|
ansible.builtin.set_fact:
|
|
bootloader_filename: "{{ bootloader_disks | first }}"
|
|
|
|
- name: Generate netboot.xyz index template
|
|
ansible.builtin.template:
|
|
src: index.html.j2
|
|
dest: "{{ netbootxyz_root }}/index.html"
|