Ansible 1.9.4 MacOSX 10.10.5 Windows 2008 R2
Command:
`
- name: Add git
win_chocolatey:
name: git
state: present
`
Result:
`
<54.69.23.23> WINRM EXEC ‘PowerShell’ [‘-NoProfile’, ‘-NonInteractive’, ‘-ExecutionPolicy’, ‘Unrestricted’, ‘-EncodedCommand’, ‘JgAgAEMAOgBcAFUAcwBlAHIAcwBcAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAXABBAHAAcABEAGEAdABhAFwATABvAGMAYQBsAFwAVABlAG0AcABcAGEAbgBzAGkAYgBsAGUALQB0AG0AcAAtADEANAA0ADUAMAAxADMAMwAzADQALgA0AC0AMQA4ADMAMAA3ADEAMAA5ADIANgA1ADAANwAxADgAXABcAHcAaQBuAF8AYwBoAG8AYwBvAGwAYQB0AGUAeQAuAHAAcwAxACAAQwA6AFwAVQBzAGUAcgBzxxxxxxxQBuAGkAcwB0AHIAYQB0AG8AcgBcAEEAcABwAEQAYQB0AGEAXABMAG8AYwBhAGwAXABUAGUAbQBwAFwAYQBuAHMAaQBiAGwAZQAtAHQAbQBwAC0AMQA0ADQANQAwADEAMwAzADMANAAuADQALQAxADgAMwAwADcAMQAwADkAMgA2ADUAMAA3ADEAOABcAFwAYxxxxxxxxxxxxAZQBtAG8AdgBlAC0ASQB0AGUAbQAgACIAQwA6AFwAVQBzAGUAcgBzAFwAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBcAEEAcABwAEQAYQB0AGEAXABMAG8AYwBhAGwAXABUAGUAbQBwAFwAYQBuAHMAaQBiAGwAZQAtAHQAbQBwAC0AMQA0ADQANQAwADEAMwAzADMANAAuADQALQAxADgAMwAwADcAMQAwADkAMgA2ADUAMAA3ADEAOABcACIAIAAtAEYAbwByAGMAZQAgAC0AUgBlAGMAdQByAHMAZQA7AA==’]
<54.69.23.23> WINRM RESULT <Response code 0, out “{ “changed”: f”, err “”>
failed: [54.69.23.23] => {“changed”: false, “chocolatey command”: “choco.exe install git -source https://chocolatey.org/api/v2/”, “failed”: true}
msg: Install error: Installing the following packages: git By installing you accept licenses for the packages. git v2.6.1 The install of git was successful. Chocolatey installed 1/1 package(s). 0 package(s) failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
FATAL: all hosts have already failed – aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/me/MapperWindows.retry
54.69.23.23 : ok=1 changed=0 unreachable=0 failed=1
`