Fix with_* loop for ansible 2.9

Ansible changed handling loop variables in 2.9 [0]. Use explicit
loop statements instead of with_*.

[0] https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html#migrating-to-loop

Change-Id: Ic063adbb672c3ff6bb4cca346d689630a7a37f34
This commit is contained in:
Jens Harbott 2020-06-18 15:30:48 +02:00
parent 8fe78addbf
commit 3d86c71723

View File

@ -1,7 +1,7 @@
- name: Register sources - name: Register sources
stat: stat:
path: "{{ zj_source.key }}" path: "{{ zj_source.key }}"
with_dict: "{{ zuul_copy_output }}" loop: "{{ zuul_copy_output|dict2items }}"
loop_control: loop_control:
loop_var: zj_source loop_var: zj_source
register: sources register: sources