# unarchive module skipping when using with\_fileglob

**URL:** <https://forum.ansible.com/t/unarchive-module-skipping-when-using-with-fileglob/18142>\
**Category:** Ansible Project\
**Tags:** fedora\
**Created:** [April 30, 2015, 1:19pm UTC](https://forum.ansible.com/t/unarchive-module-skipping-when-using-with-fileglob/18142 "2015-04-30T13:19:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rodrigo\_B\_Brasil](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@Rodrigo\_B\_Brasil](https://forum.ansible.com/u/Rodrigo_B_Brasil)\
**Post date:** [April 30, 2015, 1:19pm UTC](https://forum.ansible.com/t/unarchive-module-skipping-when-using-with-fileglob/18142/1 "2015-04-30T13:19:38Z")

</div>

Hello!

I’m pretty new to Ansible, so this may be a stupid thing that I’m (not) doing, but I couldn’t find the error by myself.

When I try to use this loop, the gzip file cannot be found and I get the “skipping” message.

`

- unarchive: copy=no src={{ item }} dest=/opt/  
with\_fileglob:
- /mnt/cd/VMwareTools\*.tar.gz

`

When I put the absolute path to the gzip file within the unarchive module, it works fine:

`

- unarchive: copy=no src=/mnt/cd/VMwareTools-8.6.0-425873.tar.gz dest=/opt/

`

I also tried the /mnt/cd/_.tar.gz and /mnt/cd/_ without success.

I’m running: Ansible 1.9.0.1, local host Fedora 21, remote host CentOS 6.6. Thanks!

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [April 30, 2015, 1:33pm UTC](https://forum.ansible.com/t/unarchive-module-skipping-when-using-with-fileglob/18142/2 "2015-04-30T13:33:10Z")

</div>

with\_fileglob runs locally, not on the remote target machine.

To get a list of files matching a pattern on a remote machine you would need to use something like the command module and ls, and register the results to a variable for later use.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [April 30, 2015, 1:37pm UTC](https://forum.ansible.com/t/unarchive-module-skipping-when-using-with-fileglob/18142/3 "2015-04-30T13:37:04Z")

</div>

or the new find module
