generate_checksums.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ---
  2. - name: Register a listing of all created iPXE bootloaders
  3. command: ls -I {{ checksums_filename }} {{ 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/{{ checksums_filename }}"
  25. - name: Generate site name banner for index
  26. shell: toilet -f standard {{ site_name }} --html | grep span
  27. register: index_title
  28. tags:
  29. - skip_ansible_lint
  30. when: ansible_os_family == "Debian"
  31. - name: Generate netboot.xyz index template
  32. template:
  33. src: index.html.j2
  34. dest: "{{ netbootxyz_root }}/index.html"