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.

24 lines
711 B

  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.source_url}}"
  8. dest: "{{local_release_dir}}/{{item.dest}}"
  9. sha256sum: "{{item.sha256 | default(omit)}}"
  10. owner: "{{ item.owner|default(omit) }}"
  11. mode: "{{ item.mode|default(omit) }}"
  12. with_items: '{{downloads}}'
  13. - name: uploads items
  14. gc_storage:
  15. bucket: kargo
  16. object: "{{item.version}}_{{item.name}}"
  17. src: "{{ local_release_dir }}/{{item.dest}}"
  18. mode: put
  19. permission: public-read
  20. gs_access_key: 'changeme'
  21. gs_secret_key: 'changeme'
  22. with_items: '{{downloads}}'