1
0

generate_pciids.yml 636 B

123456789101112131415161718192021222324252627
  1. ---
  2. - name: Retrieve pci.ids
  3. get_url:
  4. url: "{{ pciids_url }}"
  5. dest: "{{ netbootxyz_root }}/pci.ids"
  6. - name: Copy pciids_gen script to source dir
  7. copy:
  8. src: pciids_gen
  9. dest: "{{ netbootxyz_root }}/pciids_gen"
  10. mode: 0744
  11. - name: Convert pci.ids to pciids.ipxe
  12. shell: |
  13. ./pciids_gen pci.ids pciids.ipxe
  14. args:
  15. chdir: "{{ netbootxyz_root }}"
  16. tags:
  17. - skip_ansible_lint
  18. - name: Cleanup of files no longer needed
  19. file:
  20. path: "{{ item }}"
  21. state: absent
  22. with_items:
  23. - "{{ netbootxyz_root }}/pciids_gen"
  24. - "{{ netbootxyz_root }}/pci.ids"