title: Delete files older than x days inside folder of folders
body: <p>I would like to use ansible to delete older files. I have a data log folder, inside this folder I have multiple directories:</p>
  <pre><code>/data/log/folder1/
  /data/log/folder2/
  ....
  </code></pre>
  <p>I tried to use this ansible playbook :</p>
  <pre><code>---
  - hosts: all
    tasks:
      - name: find all files that are older than 10 days
        find:
          paths: /data/log/*/
          age: 10d
          recursive: yes
        register: filesOlderThan10
      - name: remove older than 10
        file:
          path: &quot;{{ item.path }}&quot; 
          state: absent
        with_items: &quot;{{ (filesOlderThan10.files }}&quot;
  </code></pre>
  <p>When I launch the playbook nothing is deleted, I'm not sure that I could use this syntax <strong>/data/log/*/</strong><br />
  I am therefore looking for suggestions to improve this code</p>