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.

27 lines
728 B

  1. ---
  2. - name: Create dest directories
  3. file:
  4. path: "{{local_release_dir}}/{{item.dest|dirname}}"
  5. state: directory
  6. recurse: yes
  7. with_items: '{{downloads}}'
  8. - name: Download items
  9. get_url:
  10. url: "{{item.source_url}}"
  11. dest: "{{local_release_dir}}/{{item.dest}}"
  12. sha256sum: "{{item.sha256 | default(omit)}}"
  13. owner: "{{ item.owner|default(omit) }}"
  14. mode: "{{ item.mode|default(omit) }}"
  15. with_items: '{{downloads}}'
  16. - name: uploads items
  17. gc_storage:
  18. bucket: kargo
  19. object: "{{item.version}}_{{item.name}}"
  20. src: "{{ local_release_dir }}/{{item.dest}}"
  21. mode: put
  22. permission: public-read
  23. gs_access_key: 'changeme'
  24. gs_secret_key: 'changeme'
  25. with_items: '{{downloads}}'