Files is a list
"files": [
So you need to reference which entry of the list you want to debug. For
example...
files_to_copy.files.0.filename
On Mon, Jun 28, 2021 at 10:19 AM John Veliss wrote:
> I am using the win.find module along with the debug module to list files.
>
> tasks:
> - name
I am using the win.find module along with the debug module to list files.
tasks:
- name: Find ALDM zip files
ansible.windows.win_find:
paths: c:\temp
recurse: no
patterns: "*.zip"
register: files_to_copy
- debug:
msg: "{{files_to_copy}}"
This is what I get