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.

25 lines
724 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. - name: "Sync container"
  14. include_tasks: sync_container.yml
  15. vars:
  16. download: "{{ download_defaults | combine(item.value) }}"
  17. with_dict: "{{ downloads }}"
  18. when:
  19. - not skip_downloads|default(false)
  20. - item.value.enabled
  21. - item.value.container
  22. - download_run_once
  23. - group_names | intersect(download.groups) | length