win_unzip hanging

129 views
Skip to first unread message

Guillaume Querso

unread,
Jul 15, 2015, 7:24:53 AM7/15/15
to ansible...@googlegroups.com
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!!

J Hawkesworth

unread,
Jul 15, 2015, 9:53:36 AM7/15/15
to ansible...@googlegroups.com
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

Guillaume Querso

unread,
Jul 16, 2015, 7:16:29 AM7/16/15
to ansible...@googlegroups.com
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

Derek Viljoen

unread,
Aug 18, 2016, 12:41:27 PM8/18/16
to Ansible Project
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.

J Hawkesworth

unread,
Aug 22, 2016, 9:26:22 AM8/22/16
to Ansible Project
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
Reply all
Reply to author
Forward
0 new messages