# unarchive fails?!

**URL:** <https://forum.ansible.com/t/unarchive-fails/19928>\
**Category:** Ansible Project\
**Created:** [December 3, 2015, 11:28am UTC](https://forum.ansible.com/t/unarchive-fails/19928 "2015-12-03T11:28:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian\_Schmitt](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Christian\_Schmitt](https://forum.ansible.com/u/Christian_Schmitt)\
**Post date:** [December 3, 2015, 11:28am UTC](https://forum.ansible.com/t/unarchive-fails/19928/1 "2015-12-03T11:28:14Z")

</div>

Hello, currently I try to unarchive a file via ansible however I always get the following:

msg: Failed to find handler to unarchive. Make sure the required command to extract the file is installed.

Currently my Machine is a OS X 10.11 and my Target machine a CentOS 7.

However I have another set of machines on CentOS 7 where I use tar.gz archives and unarchive which succeeds.

Currently tar and gunzip is installed on both machines.

---

<div class="post-metadata">

**Author:** ![Toshio\_Kuratomi](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Post date:** [December 3, 2015, 4:32pm UTC](https://forum.ansible.com/t/unarchive-fails/19928/2 "2015-12-03T16:32:24Z")

</div>

Bit more information like what ansible version you're using and  
information about the archive you're operating on would be helpful.  
Here's some troubleshooting that might be helpful:

\* Ansible first looks for a gtar program and then a tar program in the  
user's path. On centos7, I imagine htose would both be present so  
that shouldn't be the issue.  
\* Ansible runs the following command to test if tar can handle the file:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tar -tzf "FILENAME"  
&nbsp;&nbsp;Does that command work on the archive you are operating on on the  
target machine?  
\* Is the archive the same on the centos7 machine which succeeds and  
the centos7 machine that fails?

-Toshio
