# win\_chocolatey fails to install software

**URL:** <https://forum.ansible.com/t/win-chocolatey-fails-to-install-software/24379>\
**Category:** Ansible Project\
**Created:** [May 2, 2017, 3:47pm UTC](https://forum.ansible.com/t/win-chocolatey-fails-to-install-software/24379 "2017-05-02T15:47:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thorin\_Oakenshield](https://avatars.discourse-cdn.com/v4/letter/t/8dc957/32.png) [@Thorin\_Oakenshield](https://forum.ansible.com/u/Thorin_Oakenshield)\
**Post date:** [May 2, 2017, 3:47pm UTC](https://forum.ansible.com/t/win-chocolatey-fails-to-install-software/24379/1 "2017-05-02T15:47:24Z")

</div>

Hello, i’m very new to ansible.

I have been trying to install software with chocolatey and am having no luck.  
The very basic task I have is just

- win\_chocolatey:  
name: git

```auto
    name: git

```

and throws this error

fatal: [x.x.x.x]: FAILED! =\> {  
“changed”: false,  
“choco\_error\_cmd”: “choco.exe install -dv -y git -timeout 2700”,  
“choco\_error\_log”: null,  
“failed”: true,  
“msg”: “Error installing git”,  
“rc”: -1  
}

chocolatey has installed it’s self successfully and other win\_url tasks have no problems. Any ideas?

ansible 2.4.0  
config file = /etc/ansible/ansible.cfg  
configured module search path = [u’/home/pctadmin/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible  
executable location = /usr/local/bin/ansible  
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]
