fc9a65be2b
* Refactor downloads to use download role directly Also disable fact delegation so download delegate works acros OSes. * clean up bools and ansible_os_family conditionals
24 lines
637 B
YAML
24 lines
637 B
YAML
---
|
|
- import_tasks: download_prep.yml
|
|
when:
|
|
- not skip_downloads|default(false)
|
|
|
|
- name: "Download items"
|
|
include: "download_{% if download.container %}container{% else %}file{% endif %}.yml"
|
|
vars:
|
|
download: "{{ download_defaults | combine(item.value) }}"
|
|
with_dict: "{{ downloads }}"
|
|
when:
|
|
- not skip_downloads|default(false)
|
|
- item.enabled
|
|
|
|
- name: "Sync container"
|
|
include: sync_container.yml
|
|
vars:
|
|
download: "{{ download_defaults | combine(item.value) }}"
|
|
with_dict: "{{ downloads }}"
|
|
when:
|
|
- not skip_downloads|default(false)
|
|
- item.enabled
|
|
- item.container
|
|
- download_run_once
|