generate_checksums.yml 720 B

1234567891011121314151617181920212223242526
  1. ---
  2. - name: Register a listing of all created iPXE bootloaders
  3. command: ls -I checksums.txt {{ netbootxyz_root }}/ipxe/
  4. register: netboot_disks
  5. - name: Generate date
  6. command: date
  7. register: current_date
  8. - name: Gather stat listing of directory
  9. 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. template:
  17. src: checksums.txt.j2
  18. dest: "{{ netbootxyz_root }}/ipxe/checksums.txt"
  19. - name: Generate netboot.xyz index template
  20. template:
  21. src: index.html.j2
  22. dest: "{{ netbootxyz_root }}/index.html"