c12s-kubespray/roles/download/tasks/main.yml

25 lines
650 B
YAML
Raw Normal View History

2015-10-03 20:19:50 +00:00
---
- include: download_prep.yml
when:
- not skip_downloads|default(false)
2015-12-31 15:05:25 +00:00
- name: "Download items"
include: "download_{% if download.container %}container{% else %}file{% endif %}.yml"
vars:
download: "{{ download_defaults | combine(item.value) }}"
with_dict: "{{ downloads }}"
when:
- not skip_downloads|default(false)
- item.value.enabled
2015-12-31 15:05:25 +00:00
- name: "Sync container"
include: sync_container.yml
vars:
download: "{{ download_defaults | combine(item.value) }}"
with_dict: "{{ downloads }}"
when:
- not skip_downloads|default(false)
- item.value.enabled
- item.value.container
- download_run_once