title: Ansible unarchive module - pattern matching for 'src' parameter
body: <p>In <strong>build</strong> configuration, CI server builds a <em>Service</em> package, assigns it a specific <em>Version</em>, and then archives it into file: <em>Service-Version.tgz</em>.</p>
  
  <p>In <strong>deploy</strong> configuration, the same CI server downloads such variably named package. This configuration would like to copy the archive, unpack it and deploy the service on some host.</p>
  
  <p>Expressing that in Ansible code:</p>
  
  <pre><code> - name: Unpack Service on remote host
     unarchive: src="{{ src_dir }}/Service-*.tgz" dest="{{ host_dest_dir }}"
  </code></pre>
  
  <p>Ideally: Ansible would try to match anything with filename within the pattern.</p>
  
  <p>In reality, this does not work:</p>
  
  <pre><code>fatal: [127.0.0.1]: FAILED! =&gt; {"changed": false, "failed": true, "msg": "Unable to find '(...)/deploy/Service-*.tgz' in expected paths."}
  </code></pre>
  
  <p>How to make Ansible accept variadic names for 'src'?</p>
  
  <p>(I figured I could create a task registering the real name by grepping the directory, but perhaps this can be done <em>within</em> Ansible itself?)</p>