My guess would be the (un)installer is hanging as its asking the user for 
info, which won't ever get supplied because there's no gui and eventually 
you hit a timeout or one of the winrm quota limits

You could try using raw to run msiexec with switches to write to a log file 
and see what info there is in the logs.

Also depending on the user you are running as, you may not have permissions 
to make changes to C:\Program Files\ - its more locked down in later 
versions of windows that it used to be long ago.  This may not apply if you 
are running as administrator, but you might need to turn off UAC prompting 
for Administrators, which you can do by tweaking the registry:

HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System 
set 
ConsentPromptBehaviorAdmin 
to 0 to turn off and 5 to turn back on again (at least on s2012 R2)

Don't know if you have seen this but I put some tips for installing stuff 
on windows in my AnsibleFest London presentation which is available here: 
http://www.slideshare.net/jhawkesworth/ansible-20-windows-and-no-powershell-this-year-i-promise-ansiblefest-london-2016

Hope this helps,

Jon

On Friday, June 10, 2016 at 2:36:18 AM UTC+1, Bob Tanner wrote:
>
> And finally after 281m
>
>
> Finally { Remove-Item 
> "C:\Users\Administrator\AppData\Local\Temp\ansible-tmp-1465501508.58-107879928529086"
>  
> -Force -Recurse -ErrorAction SilentlyContinue }
>
>
>
> Traceback (most recent call last):
>   File 
> "/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/connection/winrm.py",
>  
> line 271, in exec_command
>     result = self._winrm_exec(cmd_parts[0], cmd_parts[1:], from_exec=True)
>   File 
> "/Users/tanner/projects/ansible.git/ansible/lib/ansible/plugins/connection/winrm.py",
>  
> line 217, in _winrm_exec
>     response = Response(self.protocol.get_command_output(self.shell_id, 
> command_id))
>   File 
> "/Users/tanner/projects/ansible.git/lib/python2.7/site-packages/winrm/protocol.py",
>  
> line 333, in get_command_output
>     self._raw_get_command_output(shell_id, command_id)
>   File 
> "/Users/tanner/projects/ansible.git/lib/python2.7/site-packages/winrm/protocol.py",
>  
> line 352, in _raw_get_command_output
>     res = self.send_message(xmltodict.unparse(req))
>   File 
> "/Users/tanner/projects/ansible.git/lib/python2.7/site-packages/winrm/protocol.py",
>  
> line 207, in send_message
>     return self.transport.send_message(message)
>   File 
> "/Users/tanner/projects/ansible.git/lib/python2.7/site-packages/winrm/transport.py",
>  
> line 173, in send_message
>     response = self.session.send(prepared_request, 
> timeout=self.read_timeout_sec)
>   File 
> "/Users/tanner/projects/ansible.git/lib/python2.7/site-packages/requests/sessions.py",
>  
> line 585, in send
>     r = adapter.send(request, **kwargs)
>   File 
> "/Users/tanner/projects/ansible.git/lib/python2.7/site-packages/requests/adapters.py",
>  
> line 479, in send
>     raise ReadTimeout(e, request=request)
> ReadTimeout: HTTPSConnectionPool(host='10.77.86.83', port=5986): Read 
> timed out. (read timeout=30)
> fatal: [win7-90day]: UNREACHABLE! => {"changed": false, "msg": "failed to 
> exec cmd PowerShell -NoProfile -NonInteractive -ExecutionPolicy 
> Unrestricted -EncodedCommand 
> UwBlAHQALQBTAHQAcgBpAGMAdABNAG8AZABlACAALQBWAGUAcgBzAGkAbwBuACAATABhAHQAZQBzAHQACgBUAHIAeQAKAHsACgAmACAAJwBDADoAXABVAHMAZQByAHMAXABBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFwAQQBwAHAARABhAHQAYQBcAEwAbwBjAGEAbABcAFQAZQBtAHAAXABhAG4AcwBpAGIAbABlAC0AdABtAHAALQAxADQANgA1ADUAMAAxADUAMAA4AC4ANQA4AC0AMQAwADcAOAA3ADkAOQAyADgANQAyADkAMAA4ADYAXAB3AGkAbgBfAHAAYQBjAGsAYQBnAGUALgBwAHMAMQAnAAoAfQAKAEMAYQB0AGMAaAAKAHsACgAkAF8AbwBiAGoAIAA9ACAAQAB7ACAAZgBhAGkAbABlAGQAIAA9ACAAJAB0AHIAdQBlACAAfQAKAEkAZgAgACgAJABfAC4ARQB4AGMAZQBwAHQAaQBvAG4ALgBHAGUAdABUAHkAcABlACkACgB7AAoAJABfAG8AYgBqAC4AQQBkAGQAKAAnAG0AcwBnACcALAAgACQAXwAuAEUAeABjAGUAcAB0AGkAbwBuAC4ATQBlAHMAcwBhAGcAZQApAAoAfQAKAEUAb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gBcAEEAcABwAEQAYQB0AGEAXABMAG8AYwBhAGwAXABUAGUAbQBwAFwAYQBuAHMAaQBiAGwAZQAtAHQAbQBwAC0AMQA0ADYANQA1ADAAMQA1ADAAOAAuADUAOAAtADEAMAA3ADgANwA5ADkAMgA4ADUAMgA5ADAAOAA2ACIAIAAtAEYAbwByAGMAZQAgAC0AUgBlAGMAdQByAHMAZQAgAC0ARQByAHIAbwByAEEAYwB0AGkAbwBuACAAUwBpAGwAZQBuAHQAbAB5AEMAbwBuAHQAaQBuAHUAZQAgAH0A",
>  
> "unreachable": true}
> to retry, use: --limit 
> @/Users/tanner/Downloads/ansible-retry/windows-workstations.retry
>
> PLAY RECAP 
> *********************************************************************
> win7-90day                 : ok=2    changed=0    unreachable=1    failed=0
>
>
> real 281m28.651s
> user 3m28.843s
> sys 2m12.636s
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/365557ef-1ac1-48ec-b1f9-f8a1d84899ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to