Hi
I can’t find the way to use the result of win_find module.
I need to modify the files from the register and encounter some errors:
`
Hi
I can’t find the way to use the result of win_find module.
I need to modify the files from the register and encounter some errors:
`
var: takes the name of a variable, not the content of one.
So the correct syntax would be.
- name: output wrapper list2
debug:
var: item.path
with_items: "{{wrapper.files}}"
An alternative is to use debugs msg.
- name: output wrapper list2
debug:
msg: "The file name is {{ item.path }}"
with_items: "{{wrapper.files}}"
It worked like a charm, i wasn’t aware of that, thank you for your help!