generate_checksums.yml 851 B

1234567891011121314151617181920212223242526272829303132
  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. tags:
  6. - skip_ansible_lint
  7. - name: Generate date
  8. command: date
  9. register: current_date
  10. tags:
  11. - skip_ansible_lint
  12. - name: Gather stat listing of directory
  13. command: sha256sum -b {{ item }}
  14. with_items:
  15. - "{{ netboot_disks.stdout_lines }}"
  16. args:
  17. chdir: "{{ netbootxyz_root }}/ipxe/"
  18. register: netboot_disks_stat
  19. tags:
  20. - skip_ansible_lint
  21. - name: Generate ipxe disk checksums
  22. template:
  23. src: checksums.txt.j2
  24. dest: "{{ netbootxyz_root }}/ipxe/{{ site_name }}-sha256-checksums.txt"
  25. - name: Generate netboot.xyz index template
  26. template:
  27. src: index.html.j2
  28. dest: "{{ netbootxyz_root }}/index.html"