Relative Content

Tag Archive for linuxansibleaixansible-automation-platform

Ansible unarchive module pointing to /usr/bin by default. Can we change this setting?

I’m using the Ansible unarchive module in my playbook to extract a Tar file. The problem for me is I’m using an AIX server and in there the GNU tar is present in the path /opt/mypath/bin/tar. However the unarchive module continues to look for tar in /usr/bin itself. Is there any setting that can change this and make the module to fetch the tar from /opt/mypath/bin/tar. I’ve tried setting the $PATH variable as well but nothing worked.