2015-10-03 20:19:50 +00:00
|
|
|
---
|
2018-01-29 11:37:48 +00:00
|
|
|
- include_tasks: download_prep.yml
|
2017-04-26 12:11:13 +00:00
|
|
|
when:
|
2017-10-19 08:17:11 +00:00
|
|
|
- not skip_downloads|default(false)
|
2015-12-31 15:05:25 +00:00
|
|
|
|
2017-10-19 08:17:11 +00:00
|
|
|
- name: "Download items"
|
2018-01-29 11:37:48 +00:00
|
|
|
include_tasks: "download_{% if download.container %}container{% else %}file{% endif %}.yml"
|
2017-10-19 08:17:11 +00:00
|
|
|
vars:
|
|
|
|
download: "{{ download_defaults | combine(item.value) }}"
|
|
|
|
with_dict: "{{ downloads }}"
|
2017-04-26 12:11:13 +00:00
|
|
|
when:
|
2017-10-19 08:17:11 +00:00
|
|
|
- not skip_downloads|default(false)
|
2017-10-24 19:49:36 +00:00
|
|
|
- item.value.enabled
|
2018-08-04 10:01:35 +00:00
|
|
|
- (not (item.value.container|default(False))) or (item.value.container and download_container)
|
2015-12-31 15:05:25 +00:00
|
|
|
|
2017-10-19 08:17:11 +00:00
|
|
|
- name: "Sync container"
|
2018-01-29 11:37:48 +00:00
|
|
|
include_tasks: sync_container.yml
|
2017-10-19 08:17:11 +00:00
|
|
|
vars:
|
|
|
|
download: "{{ download_defaults | combine(item.value) }}"
|
|
|
|
with_dict: "{{ downloads }}"
|
2017-04-26 12:11:13 +00:00
|
|
|
when:
|
2017-10-19 08:17:11 +00:00
|
|
|
- not skip_downloads|default(false)
|
2017-10-24 19:49:36 +00:00
|
|
|
- item.value.enabled
|
2018-10-11 07:45:00 +00:00
|
|
|
- item.value.container | default(false)
|
2017-10-19 08:17:11 +00:00
|
|
|
- download_run_once
|
2018-04-11 09:05:33 +00:00
|
|
|
- group_names | intersect(download.groups) | length
|
2018-12-19 13:17:58 +00:00
|
|
|
|
|
|
|
- include_tasks: kubeadm_images.yml
|
|
|
|
when:
|
|
|
|
- not skip_downloads|default(false)
|
|
|
|
- inventory_hostname in groups['kube-master']
|