# win\_unzip hanging on overwrite

**URL:** <https://forum.ansible.com/t/win-unzip-hanging-on-overwrite/22300>\
**Category:** Ansible Project\
**Created:** [August 16, 2016, 7:58pm UTC](https://forum.ansible.com/t/win-unzip-hanging-on-overwrite/22300 "2016-08-16T19:58:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Derek\_Viljoen](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@Derek\_Viljoen](https://forum.ansible.com/u/Derek_Viljoen)\
**Post date:** [August 16, 2016, 7:58pm UTC](https://forum.ansible.com/t/win-unzip-hanging-on-overwrite/22300/1 "2016-08-16T19:58:43Z")

</div>

I’m new to ansible. I’m debugging a called to win\_unzip that is hanging. I see other users having the same problem with no resolution. I’ve diagnosed it down to the generated powershell script calling Expand-Archive. If I pull the generated script and run it in powershell it pops up a dialog prompting me to merge the extract with the contents of the directory.

Is there an option I can pass in to force the overwrite?

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [August 18, 2016, 9:30pm UTC](https://forum.ansible.com/t/win-unzip-hanging-on-overwrite/22300/2 "2016-08-18T21:30:51Z")

</div>

what’s yor OS/PowerShell version?

---

<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:** [August 22, 2016, 1:29pm UTC](https://forum.ansible.com/t/win-unzip-hanging-on-overwrite/22300/3 "2016-08-22T13:29:17Z")

</div>

I’d try and organise things so that there’s no need to merge the contents of the directory (probably by removing the contents of the directory first using win\_file state: absent.)

Jon
