UnArchive fails

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.
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.

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