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

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

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [August 24, 2017, 10:48pm UTC](https://forum.ansible.com/t/find-files-starting-with-string-frustration/25325/1 "2017-08-24T22:48:49Z")

</div>

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

Each module return different ting, best is to check documentation or just run

- debug: var=\<variable name in register\>

> Thanks in advance
> 
> test.yml  
> ---  
> - hosts: cent  
> &nbsp;&nbsp;gather\_facts: no  
> &nbsp;&nbsp;tasks:  
> &nbsp;&nbsp;- name: Gather list of ifcfg-\* files  
> &nbsp;&nbsp;&nbsp;&nbsp;find:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;paths: "/etc/sysconfig/network-scripts"  
> &nbsp;&nbsp;&nbsp;&nbsp;register: net\_files
> 
> &nbsp;&nbsp;- name: DEBUG INFO  
> &nbsp;&nbsp;&nbsp;&nbsp;debug:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg: "{{ net\_files.stdout\_lines }}"  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;verbosity: 3

If you check the documentation  
[https://docs.ansible.com/ansible/latest/find\_module.html#return-values](https://docs.ansible.com/ansible/latest/find_module.html#return-values)

you'll see find only return files, examined and matched, not stdout\_lines.

So changes it to "{{ net\_files.files }}"

You could have check the content of the variable with

- debug: var=net\_files
