Replace deprecated 'with_dict' with 'loop' (#7442)

This commit is contained in:
Florian Ruynat
2021-04-05 22:45:19 +02:00
committed by GitHub
parent 1c7053c9d8
commit 6479e26904
3 changed files with 10 additions and 17 deletions

View File

@@ -25,7 +25,7 @@
- name: download | Download files / images
include_tasks: "{{ include_file }}"
with_dict: "{{ downloads | combine(kubeadm_images) }}"
loop: "{{ downloads | combine(kubeadm_images) | dict2items }}"
vars:
download: "{{ download_defaults | combine(item.value) }}"
include_file: "download_{% if download.container %}container{% else %}file{% endif %}.yml"