title: I need to find all files except one or two files in Ansible
body: <p>I need to find all files except few files. Actually I need to delete them after this.</p>
  
  <p>I used the <code>win_find</code> module and exclude option. But it doesn't exclude it.</p>
  
  <p>My code is as below.</p>
  
  <pre><code>  vars:
     exclude_files: dontdeletethis.txt
    tasks:
    - name: Find files
      win_find:
       paths: C:\temp\Test\fol1
       excludes: 'dontdeletethis.txt'
      register: log_files
  </code></pre>