Hi there
I try to unarchive several war archives. Mysteriously this fails only with war achives created by the maven spring boot plug-in (I expect this is the problem).
All my war achives can extract with the normal zip command.
I can reproduce this behavior with an ad-hoc command
ansible localhost -m unarchive -a "src=/home/pbolle/Downloads/webapp-2018.6-SNAPSHOT.war dest=/tmp"
The error message looks like
`
The full traceback is:
File “/tmp/ansible_jJlffO/ansible_module_unarchive.py”, line 141, in
from shlex import quote
localhost | FAILED! => {
“changed”: false,
“invocation”: {
“module_args”: {
“attributes”: null,
“backup”: null,
“content”: null,
“creates”: null,
“delimiter”: null,
“dest”: “/home/pbolle/temp”,
“directory_mode”: null,
“exclude”: ,
“extra_opts”: ,
“follow”: false,
“force”: null,
“group”: null,
“keep_newer”: false,
“list_files”: false,
“mode”: null,
“original_basename”: “bpa-importer-infomaterial-2018.6-SNAPSHOT.war”,
“owner”: null,
“regexp”: null,
“remote_src”: false,
“selevel”: null,
“serole”: null,
“setype”: null,
“seuser”: null,
“src”: “/home/pbolle/.ansible/tmp/ansible-tmp-1519888716.66-277418519655037/source”,
“unsafe_writes”: null,
“validate_certs”: true
}
},
“msg”: “Failed to find handler for "/home/pbolle/.ansible/tmp/ansible-tmp-1519888716.66-277418519655037/source". Make sure the required command to extract the file is installed. Command "/bin/tar" could not handle archive. Command "/usr/bin/unzip" could not handle archive.”
}
`
Any idea how to solve the problem?
Is it possible to debug the unarchive module?
Tank you and regards
Philipp