# I want to to make a basic playbook using the -find module ----- but how do I get the names of the files returned ?

**URL:** <https://forum.ansible.com/t/i-want-to-to-make-a-basic-playbook-using-the-find-module-but-how-do-i-get-the-names-of-the-files-returned/23899>\
**Category:** Ansible Project\
**Created:** [March 7, 2017, 1:05am UTC](https://forum.ansible.com/t/i-want-to-to-make-a-basic-playbook-using-the-find-module-but-how-do-i-get-the-names-of-the-files-returned/23899 "2017-03-07T01:05:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Brendlinger](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@David\_Brendlinger](https://forum.ansible.com/u/David_Brendlinger)\
**Post date:** [March 7, 2017, 1:05am UTC](https://forum.ansible.com/t/i-want-to-to-make-a-basic-playbook-using-the-find-module-but-how-do-i-get-the-names-of-the-files-returned/23899/1 "2017-03-07T01:05:37Z")

</div>

the example from expansible works great:

**----- but how do I get the names of the files returned ?**

```auto
# Recursively find /tmp files older than 2 days
- find:
    paths: "/tmp"
    age: "2d"
    recurse: yes

```

```auto

```

```auto
I do not get any results

```

---

<div class="post-metadata">

**Author:** ![Paul\_Totterman](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@Paul\_Totterman](https://forum.ansible.com/u/Paul_Totterman)\
**Post date:** [March 7, 2017, 9:20am UTC](https://forum.ansible.com/t/i-want-to-to-make-a-basic-playbook-using-the-find-module-but-how-do-i-get-the-names-of-the-files-returned/23899/2 "2017-03-07T09:20:46Z")

</div>

> **----- but how do I get the names of the files returned ?**

register:

[https://stackoverflow.com/questions/41565614/ansible-how-to-register-output-from-find-module-and-use-in-other](https://stackoverflow.com/questions/41565614/ansible-how-to-register-output-from-find-module-and-use-in-other)

Cheers,  
Paul
