title: How to get the matched return value from find module in ansible?
body: <p>I am running an Ansible playbook that looks into a directory and if the size is greater than 1 megabyte, then it has found a match. I just want to verify that it found the correct file. However, I am having a hard time capturing the output. I used the debug module in the documentation, but I still haven't solved it.</p>
  
  <pre><code>- hosts: node2 
    tasks: 
      - name: Recursively find /tmp files with last access time greater than 3600 seconds
        find:
          paths: /tmp/myFile/outputs
          size: 1m
          recurse: yes
  
      - debug:
          matched:
  
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>TASK [debug] *******************************************************************************************************************************************************************************************
  fatal: [10.245.61.245]: FAILED! =&gt; {"msg": "Invalid options for debug: matched"}
  </code></pre>