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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/432133c9-93f5-4297-8668-1ba930c5ddce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to