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

19 views
Skip to first unread message

timfox123

unread,
Mar 6, 2017, 8:05:37 PM3/6/17
to Ansible Project
the example from expansible works great:

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

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

I do not get any results

Paul Tötterman

unread,
Mar 7, 2017, 4:20:46 AM3/7/17
to Ansible Project
----- but how do I get the names of the files returned ?  

Reply all
Reply to author
Forward
0 new messages