k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
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
26 lines
748 B
---
|
|
- include_vars: "kube_versions.yml"
|
|
|
|
- name: Create dest directories
|
|
file: path={{local_release_dir}}/{{item.dest|dirname}} state=directory recurse=yes
|
|
with_items: '{{downloads}}'
|
|
|
|
- name: Download items
|
|
get_url:
|
|
url: "{{item.source_url}}"
|
|
dest: "{{local_release_dir}}/{{item.dest}}"
|
|
sha256sum: "{{item.sha256 | default(omit)}}"
|
|
owner: "{{ item.owner|default(omit) }}"
|
|
mode: "{{ item.mode|default(omit) }}"
|
|
with_items: '{{downloads}}'
|
|
|
|
- name: uploads items
|
|
gc_storage:
|
|
bucket: kargo
|
|
object: "{{item.version}}_{{item.name}}"
|
|
src: "{{ local_release_dir }}/{{item.dest}}"
|
|
mode: put
|
|
permission: public-read
|
|
gs_access_key: 'changeme'
|
|
gs_secret_key: 'changeme'
|
|
with_items: '{{downloads}}'
|