Hi all,
I'm having trouble creating a list of file names to loop over. I've tried
this, but it doesn't work:
- name: Debug
debug:
msg: "{{ item }}"
loop: "{{ query('fileglob', 'dir/*') | basename) }}"
I get an error:
An exception occurred during task execution. To see the full traceback, use
-vvv. The error was: AttributeError: 'list' object has no attribute 'rfind'
I'm using Ansible 2.5.5