# Ansible windows unzip module is failing, how to fix that?

**URL:** <https://forum.ansible.com/t/ansible-windows-unzip-module-is-failing-how-to-fix-that/34045>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [October 16, 2020, 7:23pm UTC](https://forum.ansible.com/t/ansible-windows-unzip-module-is-failing-how-to-fix-that/34045 "2020-10-16T19:23:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![uday1kiran](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/uday1kiran/32/1552_2.png) [@uday1kiran](https://forum.ansible.com/u/uday1kiran)\
**Post date:** [October 16, 2020, 7:23pm UTC](https://forum.ansible.com/t/ansible-windows-unzip-module-is-failing-how-to-fix-that/34045/1 "2020-10-16T19:23:27Z")

</div>

My task part of playbook.

- name: unzip mavenwin\_unzip:  
src: C:\tools\maven.zip  
dest: C:\tools\maven  
recurse: yes  
delete\_archive: yes

output:

TASK [unzip maven] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* [WARNING]: ansible\_winrm\_cert\_validation unsupported by pywinrm (is an up-to-date version of pywinrm installed?) [WARNING]: ansible\_winrm\_cert\_validation unsupported by pywinrm (is an up-to-date version of pywinrm installed?) fatal: [build-machine3]: FAILED! =\> {“changed”: false, “dest”: “C:\tools\maven”, “msg”: “PowerShellCommunityExtensions PowerShell Module (PSCX) is required for non-‘.zip’ compressed archive types.”, “removed”: false, “src”: “C:\tools\maven.zip”} fatal: [build-machine2]: FAILED! =\> {“changed”: false, “dest”: “C:\tools\maven”, “msg”: “PowerShellCommunityExtensions PowerShell Module (PSCX) is required for non-‘.zip’ compressed archive types.”, “removed”: false, “src”: “C:\tools\maven.zip”}

So added the PSCX part before it.

- name: Install PSCX  
win\_psmodule:  
name: Pscx  
state: present

But, got below error now related to Pscx.

TASK [Install PSCX] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* [WARNING]: ansible\_winrm\_cert\_validation unsupported by pywinrm (is an up-to-date version of pywinrm installed?) [WARNING]: ansible\_winrm\_cert\_validation unsupported by pywinrm (is an up-to-date version of pywinrm installed?) fatal: [build-machine3]: FAILED! =\> {“changed”: false, “msg”: “Problems installing Pscx module: The following commands are already available on this system:‘gcb,Expand-Archive,Format-Hex,Get-Hash,help,prompt,Get-Clipboard,Get-Help,Set-Clipboard’. This module ‘Pscx’ may override the existing commands. If you still want to install this module ‘Pscx’, use -AllowClobber parameter.”, “nuget\_changed”: false, “output”: “”, “repository\_changed”: false} fatal: [build-machine2]: FAILED! =\> {“changed”: false, “msg”: “Problems installing Pscx module: The following commands are already available on this system:‘gcb,Expand-Archive,Format-Hex,Get-Hash,help,prompt,Get-Clipboard,Get-Help,Set-Clipboard’. This module ‘Pscx’ may override the existing commands. If you still want to install this module ‘Pscx’, use -AllowClobber parameter.”, “nuget\_changed”: false, “output”: “”, “repository\_changed”: false}

Please suggest.

---

<div class="post-metadata">

**Author:** ![Rahul\_Puli](https://avatars.discourse-cdn.com/v4/letter/r/82dd89/32.png) [@Rahul\_Puli](https://forum.ansible.com/u/Rahul_Puli)\
**Post date:** [October 22, 2020, 10:49am UTC](https://forum.ansible.com/t/ansible-windows-unzip-module-is-failing-how-to-fix-that/34045/2 "2020-10-22T10:49:09Z")

</div>

Try to update the below one in your inventory file and try to execute

ansible\_winrm\_server\_cert\_validation=ignore

or

Update the pywinrm and check again.

---

<div class="post-metadata">

**Author:** ![uday1kiran](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/uday1kiran/32/1552_2.png) [@uday1kiran](https://forum.ansible.com/u/uday1kiran)\
**Post date:** [October 24, 2020, 9:23am UTC](https://forum.ansible.com/t/ansible-windows-unzip-module-is-failing-how-to-fix-that/34045/3 "2020-10-24T09:23:42Z")

</div>

It is not relevant at all to the question I posted.Please read it once

---

<div class="post-metadata">

**Author:** ![Tanisha\_Mishra](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Tanisha\_Mishra](https://forum.ansible.com/u/Tanisha_Mishra)\
**Post date:** [August 24, 2021, 12:52pm UTC](https://forum.ansible.com/t/ansible-windows-unzip-module-is-failing-how-to-fix-that/34045/4 "2021-08-24T12:52:31Z")

</div>

Hi Uday,

Have you got the fix ? I am facing same.

Thanks,  
Tanisha
