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.

26 lines
748 B

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