2015-10-04 04:19:50 +08:00
|
|
|
---
|
2018-01-29 19:37:48 +08:00
|
|
|
- include_tasks: download_prep.yml
|
2017-04-26 20:11:13 +08:00
|
|
|
when:
|
2017-10-19 16:17:11 +08:00
|
|
|
- not skip_downloads|default(false)
|
2015-12-31 23:05:25 +08:00
|
|
|
|
2017-10-19 16:17:11 +08:00
|
|
|
- name: "Download items"
|
2018-01-29 19:37:48 +08:00
|
|
|
include_tasks: "download_{% if download.container %}container{% else %}file{% endif %}.yml"
|
2017-10-19 16:17:11 +08:00
|
|
|
vars:
|
|
|
|
download: "{{ download_defaults | combine(item.value) }}"
|
|
|
|
with_dict: "{{ downloads }}"
|
2017-04-26 20:11:13 +08:00
|
|
|
when:
|
2017-10-19 16:17:11 +08:00
|
|
|
- not skip_downloads|default(false)
|
2017-10-25 03:49:36 +08:00
|
|
|
- item.value.enabled
|
2015-12-31 23:05:25 +08:00
|
|
|
|
2017-10-19 16:17:11 +08:00
|
|
|
- name: "Sync container"
|
2018-01-29 19:37:48 +08:00
|
|
|
include_tasks: sync_container.yml
|
2017-10-19 16:17:11 +08:00
|
|
|
vars:
|
|
|
|
download: "{{ download_defaults | combine(item.value) }}"
|
|
|
|
with_dict: "{{ downloads }}"
|
2017-04-26 20:11:13 +08:00
|
|
|
when:
|
2017-10-19 16:17:11 +08:00
|
|
|
- not skip_downloads|default(false)
|
2017-10-25 03:49:36 +08:00
|
|
|
- item.value.enabled
|
2018-07-08 18:36:47 +08:00
|
|
|
- "{{ item.value.container | default(False) }}"
|
2017-10-19 16:17:11 +08:00
|
|
|
- download_run_once
|
2018-04-11 17:05:33 +08:00
|
|
|
- group_names | intersect(download.groups) | length
|