title: Ansible find module does not exclude folder in the search
body: <p>Here is my playbook where i try to find <code>test-juli.jar</code> under <code>/app</code> directory however, i wish to exclude <code>/app/Patchbackup</code> folder from the search.</p>
  <p>Below is my playbook for the same:</p>
  <pre><code>  tasks:
  
      - name: Find test home directories under /app
        find:
          paths: /app
          file_type: any
          recurse: yes
          depth: 4
          patterns: 'test-juli.jar'
          excludes: 'log,tmp,.installation,Patchbackup'
        tags: always
        register: tomjarfound
  
      - debug:
          msg: &quot;ALL LISTED REFINED JARS: {{ item.path }}&quot;
        loop: &quot;{{ tomjarfound.files }}&quot;
  </code></pre>
  <p>When i run the above, i was expecting the <code>find</code> not to find under <code>/app/Patchbackup</code> but the output shows that it does despite being excluded.</p>
  <p>Here is the output:</p>
  <pre><code>TASK [debug] ***********************************************************************************************************************************************************
  ok: [10.0.0.11] =&gt; (item=/app/apache-test-9.0.10/bin/test-juli.jar) =&gt; {
      &quot;msg&quot;: &quot;ALL LISTED REFINED JARS: /app/apache-test-9.0.10/bin/test-juli.jar&quot;
  }
  ok: [10.0.0.11] =&gt; (item=/app/Patchbackup/app/apache-test-9.0.10/bin/test-juli.jar) =&gt; {
      &quot;msg&quot;: &quot;ALL LISTED REFINED JARS: /app/Patchbackup/app/apache-test-9.0.10/bin/test-juli.jar&quot;
  }
  </code></pre>
  <p>Can you please suggest how can I exclude the folder <code>/app/Patchbackup</code> from ansible's find ?</p>