win_unzip hanging

hi all,

I am using ansible to unzip files on a windows 2008 R2 server. My playbook was working fine but for an unknown reason, the win_unzip module is now never ending. i am running ansible 1.9.2.
Thank you for your help!!

Hi Guillaume,

A few things you could try.

Run with -vvvvv to see if the module is being run.

2/ set
ANSIBLE_KEEP_REMOTE_FILES=1 on your controller before running your playbook.

This will then not delete the powershell scripts so you can log into the affected machine and run them directly in powershell

3/ check event log for errors.

Hopefully you can find out what the problem is using the above.

Jon

hi jon,

unfortunately, nothing works to solve the problem… is there anything new on the domain access? because it would make things a lot easier for me (and the windows community)!!!

Thanks

I’ve got the same problem. It is because the Expand-Archive command in the generated powershell script prompts the user to overwrite an existing file/directory. I’ve opened another thread asking if anyone knows how to force it to overwrite without prompting.

Would it be possible to use win_file state: absent first? I don’t know what problem you are trying to solve but its a pattern I use, which I like as that way I know the contents of an unzipped folder only contains the things in my zip, thereby enforcing that my playbook remains in control of what is left on my managed hosts.

Jon