2016-03-04 16:39:02 +00:00
|
|
|
---
|
|
|
|
- name: Create dest directories
|
|
|
|
file: path={{local_release_dir}}/{{item.dest|dirname}} state=directory recurse=yes
|
2016-04-11 10:19:09 +00:00
|
|
|
with_items: '{{downloads}}'
|
2016-03-04 16:39:02 +00:00
|
|
|
|
|
|
|
- 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) }}"
|
2016-04-11 10:19:09 +00:00
|
|
|
with_items: '{{downloads}}'
|
2016-03-04 16:39:02 +00:00
|
|
|
|
|
|
|
- name: uploads items
|
|
|
|
gc_storage:
|
2016-04-19 15:25:19 +00:00
|
|
|
bucket: kargo
|
2016-03-04 16:39:02 +00:00
|
|
|
object: "{{item.version}}_{{item.name}}"
|
|
|
|
src: "{{ local_release_dir }}/{{item.dest}}"
|
|
|
|
mode: put
|
|
|
|
permission: public-read
|
2016-07-03 12:14:09 +00:00
|
|
|
gs_access_key: 'changeme'
|
|
|
|
gs_secret_key: 'changeme'
|
2016-04-11 10:19:09 +00:00
|
|
|
with_items: '{{downloads}}'
|