kubespray/roles/download/tasks/main.yml

26 lines
749 B
YAML
Raw Normal View History

2015-10-04 04:19:50 +08:00
---
- include_tasks: download_prep.yml
when:
- not skip_downloads|default(false)
2015-12-31 23:05:25 +08:00
- name: "Download items"
include_tasks: "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 23:05:25 +08:00
- name: "Sync container"
include_tasks: 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 | default(False) }}"
- download_run_once
2018-04-11 17:05:33 +08:00
- group_names | intersect(download.groups) | length