Unpack tar.gz on Windows Server?

74 views
Skip to first unread message

Slim Slam

unread,
Feb 10, 2016, 12:44:28 PM2/10/16
to Ansible Project
What's the Ansible 2.0 recommended way to unpack a tar.gz file on Windows?

It looks like win_unzip can handle gzip'ed files, but what about unpacking tar archives?

J

Slim Slam

unread,
Feb 10, 2016, 4:55:55 PM2/10/16
to Ansible Project
The easiest way seems to be to install 7z http://www.7-zip.org and use that. It can handle zip/gzip/tar easily.
I'd rather use an ansible module, of course.

J

J Hawkesworth

unread,
Feb 11, 2016, 6:27:33 AM2/11/16
to Ansible Project
If you want an example role to install 7zip - have a look in the integration tests
test/integration/roles/test-win-msi/

All the best,

Jon
Reply all
Reply to author
Forward
0 new messages