# Find files starting with \<string\> -- Frustration

**URL:** <https://forum.ansible.com/t/find-files-starting-with-string-frustration/25324>\
**Category:** Ansible Project\
**Created:** [August 24, 2017, 10:43pm UTC](https://forum.ansible.com/t/find-files-starting-with-string-frustration/25324 "2017-08-24T22:43:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Harmon](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Post date:** [August 24, 2017, 10:43pm UTC](https://forum.ansible.com/t/find-files-starting-with-string-frustration/25324/1 "2017-08-24T22:43:09Z")

</div>

Although my current playbook doesn’t look for ifcfg files directly, I am just trying to grab a list of files and it is failing. I can’t, for the life of me, figure out why. If I change the find: to a command: and then run an ls, it works… wondering if someone can put me on the right path. Not making any real progress on my own…

Ultimately I am trying to find files starting with ifcfg- in the specified directory.

Side question: Where can I find a list of debug output types for my vars (ie. stdout, stdout\_lines, etc)?

Thanks in advance

Playbook:

`

---

<div class="post-metadata">

**Author:** ![John\_Harmon](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Post date:** [August 24, 2017, 10:57pm UTC](https://forum.ansible.com/t/find-files-starting-with-string-frustration/25324/2 "2017-08-24T22:57:11Z")

</div>

Perfect. Thank you. That was the information I needed. I saw the return values earlier in the documentation, but I assumed I didn’t understand it. Thx for the debug info too, that will help me in the future.
