Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 26 additions & 13 deletions artifacts/download_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,35 @@
poll_time: 0
when: wait_to_download | bool

- name: Download "{{ data_url }}" on "{{ local_path }}"
get_url:
url: "{{ data_url }}"
dest: "{{ local_path }}"
mode: '644'
async: "{{ max_time }}"
poll: "{{ poll_time }}"
when: not unarchive

- name: Unarchive "{{ data_url }}" on "{{ local_path }}"
unarchive:
- name: Download "{{ data_url }}" on "{{ local_path }}" using rsync
synchronize:
src: "{{ data_url }}"
dest: "{{ local_path }}"
remote_src: true
when: unarchive
mode: pull
rsync_opts:
- "-a"
- "-P"
when: data_url | urlsplit("scheme") == "rsync"

- name: Download "{{ data_url }}" on "{{ local_path }}" with get_url
when: data_url | urlsplit("scheme") != "rsync"
block:

- name: Download "{{ data_url }}" on "{{ local_path }}"
get_url:
url: "{{ data_url }}"
dest: "{{ local_path }}"
mode: '644'
async: "{{ max_time }}"
poll: "{{ poll_time }}"
when: not unarchive

- name: Unarchive "{{ data_url }}" on "{{ local_path }}"
unarchive:
src: "{{ data_url }}"
dest: "{{ local_path }}"
remote_src: true
when: unarchive

- name: Download data to a K8s PVC
when: data_url != '' and pvc_name != '' and pvc_namespace != ''
Expand Down
2 changes: 1 addition & 1 deletion custom_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ node_types:
install_ingress:
required: no
type: boolean
default: false
default: true
ingress_type:
required: no
type: string
Expand Down
Loading