# Unpack tar.gz on Windows Server?

**URL:** <https://forum.ansible.com/t/unpack-tar-gz-on-windows-server/20521>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [February 10, 2016, 5:44pm UTC](https://forum.ansible.com/t/unpack-tar-gz-on-windows-server/20521 "2016-02-10T17:44:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Levitt](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Post date:** [February 10, 2016, 5:44pm UTC](https://forum.ansible.com/t/unpack-tar-gz-on-windows-server/20521/1 "2016-02-10T17:44:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jason\_Levitt](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Post date:** [February 10, 2016, 9:55pm UTC](https://forum.ansible.com/t/unpack-tar-gz-on-windows-server/20521/2 "2016-02-10T21:55:55Z")

</div>

The easiest way seems to be to install 7z [http://www.7-zip.org](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

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [February 11, 2016, 11:27am UTC](https://forum.ansible.com/t/unpack-tar-gz-on-windows-server/20521/3 "2016-02-11T11:27:33Z")

</div>

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
