# Find module results not returning as expected

**URL:** <https://forum.ansible.com/t/find-module-results-not-returning-as-expected/27216>\
**Category:** Ansible Project\
**Created:** [April 7, 2018, 1:14pm UTC](https://forum.ansible.com/t/find-module-results-not-returning-as-expected/27216 "2018-04-07T13:14:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flowerysong1](https://avatars.discourse-cdn.com/v4/letter/f/ecae2f/32.png) [@flowerysong1](https://forum.ansible.com/u/flowerysong1)\
**Post date:** [April 7, 2018, 1:14pm UTC](https://forum.ansible.com/t/find-module-results-not-returning-as-expected/27216/1 "2018-04-07T13:14:12Z")

</div>

If you want to output a message use the debug module, not “command: echo”.

`

- name: echo files  
debug:  
msg: “{{ item.path | basename }}”  
loop: “{{ files\_found.files }}”

`

`

TASK [echo files] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [localhost] =\> (item=None) =\> {  
“msg”: “vault.zip”  
}

`
