I am using the unarchive Ansible module and does not seem to work for extracting a war file. It works great for.
There is also a setype switch: "enter part of the context of the SELinux file", which I'm not sure if it can be used to set the file type as a war.
I tried this:
-name: Unpack war unarchive: src=~/wars/mywar.war dest=/tmp/deploy setype=war copy=no
it gives an error: msg: Failed to find handler to unarchive. Make sure the required command to extract the file is installed. msg: Failed to find handler to unarchive. Make sure the required command to extract the file is installed.
When I do not use 'setype', I get the same error again.
How can I extract a war file using Ansible?
source share