title: Ansible 'find' command - print only filenames
body: <p>I am trying to use Ansible find command to delete files with a given pattern.  Before executing the delete part, I want to list the files that will be deleted.  I want to list only filenames including path.   The default debug prints a lot of information</p>
  <pre><code>- name: Ansible delete old files from pathslist
    find:
      paths: &quot;{{ pathslist }}&quot;
      patterns:
      - &quot;authlog.*&quot;
      - &quot;server.log.*&quot;
    register: var_log_files_to_delete
  
  - name : get the complete path
    set_fact:
      files_found_path: &quot;{{ var_log_files_to_delete.files }}&quot;
  
  - debug:
      var: files_found_path
  </code></pre>
  <p>This outputs like below</p>
  <pre><code>{
          &quot;atime&quot;: 1607759761.7751443,
          &quot;ctime&quot;: 1615192802.0948966,
          &quot;dev&quot;: 66308,
          &quot;gid&quot;: 0,
          &quot;gr_name&quot;: &quot;root&quot;,
          &quot;inode&quot;: 158570,
          &quot;isblk&quot;: false,
          &quot;ischr&quot;: false,
          &quot;isdir&quot;: false,
          &quot;isfifo&quot;: false,
          &quot;isgid&quot;: false,
          &quot;islnk&quot;: false,
          &quot;isreg&quot;: true,
          &quot;issock&quot;: false,
          &quot;isuid&quot;: false,
          &quot;mode&quot;: &quot;0640&quot;,
          &quot;mtime&quot;: 1607675101.0750349,
          &quot;nlink&quot;: 1,
          &quot;path&quot;: &quot;/var/log/authlog.87&quot;,
          &quot;pw_name&quot;: &quot;root&quot;,
          &quot;rgrp&quot;: true,
          &quot;roth&quot;: false,
          &quot;rusr&quot;: true,
          &quot;size&quot;: 335501,
          &quot;uid&quot;: 0,
          &quot;wgrp&quot;: false,
          &quot;woth&quot;: false,
          &quot;wusr&quot;: true,
          &quot;xgrp&quot;: false,
          &quot;xoth&quot;: false,
          &quot;xusr&quot;: false
  }
  </code></pre>
  <p>I tried <code>files_found_path: &quot;{{ var_log_files_to_delete.files['path'] }}&quot;</code>  but it generates an error.</p>
  <p>How can I print only the paths?</p>
  <p>Thank you</p>