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.

26 lines
848 B

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: "download_{% if download.container %}container{% else %}file{% endif %}.yml"
  7. vars:
  8. download: "{{ download_defaults | combine(item.value) }}"
  9. with_dict: "{{ downloads }}"
  10. when:
  11. - not skip_downloads|default(false)
  12. - item.value.enabled
  13. - (not (item.value.container|default(False))) or (item.value.container and download_container)
  14. - name: "Sync container"
  15. include_tasks: sync_container.yml
  16. vars:
  17. download: "{{ download_defaults | combine(item.value) }}"
  18. with_dict: "{{ downloads }}"
  19. when:
  20. - not skip_downloads|default(false)
  21. - item.value.enabled
  22. - "{{ item.value.container | default(False) }}"
  23. - download_run_once
  24. - group_names | intersect(download.groups) | length