2015-10-04 04:19:50 +08:00
|
|
|
---
|
2017-10-19 16:17:11 +08:00
|
|
|
- import_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"
|
|
|
|
include: "download_{% if download.container %}container{% else %}file{% endif %}.yml"
|
|
|
|
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)
|
|
|
|
- item.enabled
|
2015-12-31 23:05:25 +08:00
|
|
|
|
2017-10-19 16:17:11 +08:00
|
|
|
- name: "Sync container"
|
|
|
|
include: sync_container.yml
|
|
|
|
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)
|
|
|
|
- item.enabled
|
|
|
|
- item.container
|
|
|
|
- download_run_once
|