You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.0 KiB

9 years ago
  1. ---
  2. - include_tasks: download_prep.yml
  3. when:
  4. - not skip_downloads|default(false)
  5. - name: "Download items"
  6. include_tasks: "{{ include_file }}"
  7. vars:
  8. download: "{{ download_defaults | combine(item.value) }}"
  9. include_file: "download_{% if download.container %}container{% else %}file{% endif %}.yml"
  10. with_dict: "{{ downloads }}"
  11. when:
  12. - not skip_downloads|default(false)
  13. - item.value.enabled
  14. - (not (item.value.container|default(False))) or (item.value.container and download_container)
  15. - name: "Sync container"
  16. include_tasks: sync_container.yml
  17. vars:
  18. download: "{{ download_defaults | combine(item.value) }}"
  19. with_dict: "{{ downloads }}"
  20. when:
  21. - not skip_downloads|default(false)
  22. - item.value.enabled
  23. - item.value.container | default(false)
  24. - download_run_once
  25. - group_names | intersect(download.groups) | length
  26. - include_tasks: kubeadm_images.yml
  27. when:
  28. - kube_version is version('v1.11.0', '>=')
  29. - not skip_downloads|default(false)
  30. - inventory_hostname in groups['kube-master']