title: how to copy files matching a regex using ansible
body: <p>I have a bunch of files on a specific <code>files/</code> folder. Some files have different extensions. I want to copy to a target directory only files ending in a specific extension.
  I tried this but it does not work.</p>
  <pre><code>  - name: Copy only .txt files
      copy:
        src: files/*.txt
        dest: /var/files/
  </code></pre>
  <p>In this case I only need need to copy 3 files, so I can create a new task per file, but I was wondering how to do this if I want to match a regex</p>