title: Print value from find command in Ansible playbook
body: <p>I have following playbook:</p>
  
  <pre><code>  - name: Find files
      find:
       paths: "{{ ARCHIVE }}"
       patterns: "{{ item }}_*"
       file_type: directory
      register: files_matched
      with_items: "{{ bucket_with_items }}"
  
  #  - debug:
  #     var: files_matched
  
    - name: Remove directories
      file:
       path: "{{ item.files.path }}"
       state: absent
      with_items: "{{ files_matched.results }}"
  </code></pre>
  
  <p>But when i execute this, i get following error messages:</p>
  
  <pre><code>fatal: [uwd-sschbn-01]: FAILED! =&gt; {"failed": true, "msg": "The task includes an option with an undefined variable. The error was: 'list object' has no attribute 'path'\n\nThe error appears to have been in '/etc/ansible/couchbase.yml': line 42, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n  - name: Remove directories\n   
  </code></pre>
  
  <p>My situation is, i want to delete folders which are stored in 'files_matched' register module. But before that i just wanted to see what is being stored in files_matched  variable. How can i do that?</p>