Skip to content
main.yml 650 B
Newer Older
Smaine Kahlouch's avatar
Smaine Kahlouch committed
---
- include: download_prep.yml
Sergii Golovatiuk's avatar
Sergii Golovatiuk committed
  when:
    - not skip_downloads|default(false)
ant31's avatar
ant31 committed

- name: "Download items"
  include: "download_{% if download.container %}container{% else %}file{% endif %}.yml"
  vars:
    download: "{{ download_defaults | combine(item.value) }}"
  with_dict: "{{ downloads }}"
Sergii Golovatiuk's avatar
Sergii Golovatiuk committed
  when:
    - not skip_downloads|default(false)
ant31's avatar
ant31 committed

- name: "Sync container"
  include: sync_container.yml
  vars:
    download: "{{ download_defaults | combine(item.value) }}"
  with_dict: "{{ downloads }}"
Sergii Golovatiuk's avatar
Sergii Golovatiuk committed
  when:
    - not skip_downloads|default(false)
    - item.value.enabled
    - item.value.container