You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
578 B

9 years ago
  1. ---
  2. - name: Create dest directories
  3. file: path={{local_release_dir}}/{{item.dest|dirname}} state=directory recurse=yes
  4. with_items: downloads
  5. - name: Download items
  6. get_url:
  7. url: "{{item.url}}"
  8. dest: "{{local_release_dir}}/{{item.dest}}"
  9. sha256sum: "{{item.sha256 | default(omit)}}"
  10. with_items: downloads
  11. - name: Extract archives
  12. unarchive:
  13. src: "{{ local_release_dir }}/{{item.dest}}"
  14. dest: "{{ local_release_dir }}/{{item.dest|dirname}}"
  15. copy: no
  16. when: "{{item.unarchive is defined and item.unarchive == True}}"
  17. with_items: downloads