<p dir="auto"><strong>issue type</strong>  : Feature Idea<br>
<strong>ansible version</strong>  : 1.9.3</p>
<p dir="auto">it will be cool if we could extract only one file like this :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="unarchive: src={{ item.value.url }} dest={{ target_path }}{{ item.value.app_name }} path={{ item.value.path }}"><pre class="notranslate"><code class="notranslate">unarchive: src={{ item.value.url }} dest={{ target_path }}{{ item.value.app_name }} path={{ item.value.path }}
</code></pre></div>
<p dir="auto">where  <code class="notranslate">path</code> parm is the path of the file inside the archive</p>
<p dir="auto">this could give</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="unarchive: src=http://myrepository.com/dir/foobar-1.2.3.tar.gz dest=/home/foxmask/tomcat/webapps/foobar.war path=./applications/foobar.war"><pre class="notranslate"><code class="notranslate">unarchive: src=http://myrepository.com/dir/foobar-1.2.3.tar.gz dest=/home/foxmask/tomcat/webapps/foobar.war path=./applications/foobar.war
</code></pre></div>
<p dir="auto">thus this will mimic this command :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cd /home/foxmask/tomcat/webapps &amp;&amp; wget -O - http://myrepository.com/dir/foobar-1.2.3.tar.gz | tar -xvzf - ./applications/foobar.ear"><pre class="notranslate"><code class="notranslate">cd /home/foxmask/tomcat/webapps &amp;&amp; wget -O - http://myrepository.com/dir/foobar-1.2.3.tar.gz | tar -xvzf - ./applications/foobar.ear
</code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5>
<p dir="auto">Feature Idea</p>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">unarchive module</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Add a list of files or patterns to extract from the archive instead of extracting the whole thing, by default it is none/empty and won't filter.</p>