nexus3-oss icon indicating copy to clipboard operation
nexus3-oss copied to clipboard

Nexus Ansible role is failing to unpack downloaded nexus

Open tomararobin opened this issue 2 years ago • 2 comments

While running nexus ansible role : role : [ansible-thoteam.nexus3-oss] version : 2.4.15 [latest] We are getting the below error :

TASK [ansible-thoteam.nexus3-oss : Unpack Nexus download] ********************** 11:15:57 fatal: [nexus_host]: FAILED! => {"changed": false, "msg": "Failed to find handler for "/tmp/nexus-3.34.1-01-unix.tar.gz". Make sure the required command to extract the file is installed. Command "/bin/gtar" could not handle archive. Command "/bin/unzip" could not handle archive."}

and we have gtar and unzip installed on our vApp.

After investigation we found that with ansible version [2.9.5] and rhel version [8.3], we are able to execute this task, but with ansible version : [2.9.27] and rhel version : [8.5] facing above issue.

So role needs to be changed : by adding extra-ops to unarchive module of unpack nexus download task.

Reference : https://stackoverflow.com/questions/58792859/ansible-unarchive-command-causes-error-failed-to-find-handler

Question : Please assist in providing a solution that we can use or ; If you can provide needful changes in the role itself in next release of role.

tomararobin avatar Jun 06 '22 12:06 tomararobin

Facing same issue even if ansible version : 2.9.5 with RHEL version: 8.5 with same description mentioned by [tomararobin]

Plz update on this issue

komalkumbh avatar Jun 08 '22 06:06 komalkumbh

Any update from role : [ansible-thoteam.nexus3-oss] role owner Please assist as i'm stuck

komalkumbh avatar Jun 10 '22 07:06 komalkumbh

Hi.

I'm getting back to maintenance after a long pause for 3 main reason: 1) I was quite busy on other projects while the role was running like a charm on my side (deploying several times a month) and I had no special need for enhancements 2) the CI was down making reviewing PRs quite a pain. Sorry for not getting in touch sooner.

As mentionned in my above paragraph (pasted to several users while I'm cleaning up left-over issues and PRs), this has been working like a charm for the last months with several nexus upgrades on centos 7, debian and ubuntu with updated versions of ansible. Make sure you have tar and gzip installed on the target. Update to a supported version of ansible: 2.9 is unmaintained for a long time now and the officially recommended/supported install method is pip install ansible which will get you the latest version.

Thanks for getting in touch and once again sorry for not replying sooner.

zeitounator avatar Oct 23 '22 23:10 zeitounator