Your issue is that Apps_files.files is a list, so Apps_files[0].path would access the path of the FIRST file in that list, which means you have to extract path for each item to make the fetch loop work:
- name: fetch: src: "{{ item }}" dest: /APPADMIN/ansible/nonprod/DR_test/ loop: "{{ Apps_files.files|map(attribute='path')|list }}" ---------- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7fyNogYr--i8YYS0yDmisC6%3DffVGrfCzf5XJbt%2BL-iqbg%40mail.gmail.com.