# UnArchive fails

**URL:** <https://forum.ansible.com/t/unarchive-fails/26583>\
**Category:** Ansible Project\
**Created:** [January 29, 2018, 11:02am UTC](https://forum.ansible.com/t/unarchive-fails/26583 "2018-01-29T11:02:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumar\_c](https://avatars.discourse-cdn.com/v4/letter/k/c67d28/32.png) [@kumar\_c](https://forum.ansible.com/u/kumar_c)\
**Post date:** [January 29, 2018, 11:02am UTC](https://forum.ansible.com/t/unarchive-fails/26583/1 "2018-01-29T11:02:48Z")

</div>

Hi there,  
trying to un-archive from ansible controller machine to remote…

But, it’s throwing error’s…  
Error :-

FAILED! =\> {“changed”: false, “msg”: “Failed to find handler for "/root/.ansible/tmp/ansible-tmp-1517223206.85-97800010944286/source". Make sure the required command to extract the file is installed. Commands "gtar" and "tar" not found. Command "unzip" not found.”}

Code:-

# unarchive - Copy tgz file and extract in destination.

- name: Copy and UnArchive the Package in Destination Server.  
unarchive: src={{ binaries\_basepath }}/{{tpackage\_name}}.tar.gz dest={{install\_base\_path}}/

More details

ansible 2.4.2.0  
config file = /home/sure/deployer/ansible\_scripts/ansible.cfg  
configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/lib/python2.7/dist-packages/ansible  
executable location = /usr/bin/ansible  
python version = 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]

tar (GNU tar) 1.28  
Copyright (C) 2014 Free Software Foundation, Inc.  
License GPLv3+: GNU GPL version 3 or later [http://gnu.org/licenses/gpl.html](http://gnu.org/licenses/gpl.html).  
This is free software: you are free to change and redistribute it.  
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [January 29, 2018, 2:10pm UTC](https://forum.ansible.com/t/unarchive-fails/26583/2 "2018-01-29T14:10:38Z")

</div>

unarchive runs on the remote host not the controller so you need tar and unzip installed on the remote host.
