1
0

generate_checksums.yml 966 B

12345678910111213141516171819202122232425262728293031
  1. ---
  2. - name: Register a listing of all created iPXE bootloaders
  3. ansible.builtin.command: ls -I {{ checksums_filename }} {{ netbootxyz_root }}/ipxe/
  4. register: netboot_disks
  5. - name: Generate date
  6. ansible.builtin.command: date
  7. register: current_date
  8. - name: Gather stat listing of directory
  9. ansible.builtin.command: sha256sum -b {{ item }}
  10. with_items:
  11. - "{{ netboot_disks.stdout_lines }}"
  12. args:
  13. chdir: "{{ netbootxyz_root }}/ipxe/"
  14. register: netboot_disks_stat
  15. - name: Generate ipxe disk checksums
  16. ansible.builtin.template:
  17. src: checksums.txt.j2
  18. dest: "{{ netbootxyz_root }}/ipxe/{{ checksums_filename }}"
  19. - name: Generate site name banner for index
  20. ansible.builtin.shell: toilet -f standard {{ site_name }} --html | grep span
  21. register: index_title
  22. when: ansible_os_family == "Debian"
  23. - name: Generate netboot.xyz index template
  24. ansible.builtin.template:
  25. src: index.html.j2
  26. dest: "{{ netbootxyz_root }}/index.html"