Use with_list for Ansible < 2.5 compatibility

loop on Ansible < 2.5 throws an "Unexpected failure in finding the
lookup named" message. Fix that replacing loop with with_list.

Change-Id: Iecb0f67fcfadd017ef7c889d9cdada68da0d46e9
This commit is contained in:
Carlos Goncalves 2018-10-24 11:18:54 +02:00
parent 36f4481104
commit 2cdc8441d3
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@
copy:
src: "{{ item }}"
dest: "{{ modify_dir_path }}"
loop: "{{ rpms_list }}"
with_list: "{{ rpms_list }}"
- name: Write Dockerfile to {{ modify_dir_path }}
template: