# Unable to install software on Windows with v1.9.2 or v2

**URL:** <https://forum.ansible.com/t/unable-to-install-software-on-windows-with-v1-9-2-or-v2/19121>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [August 27, 2015, 7:20am UTC](https://forum.ansible.com/t/unable-to-install-software-on-windows-with-v1-9-2-or-v2/19121 "2015-08-27T07:20:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Smith](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@Matt\_Smith](https://forum.ansible.com/u/Matt_Smith)\
**Post date:** [August 27, 2015, 7:20am UTC](https://forum.ansible.com/t/unable-to-install-software-on-windows-with-v1-9-2-or-v2/19121/1 "2015-08-27T07:20:17Z")

</div>

Hi all,

I’m getting started with Ansible with the aim of managing Windows servers. My control station is running OSX Yosemite and the target servers are Windows Server 2008 R2. I am testing against a server running in VirtualBox on my laptop.

I prepped the server by:

1. Installing Chocolatey (v0.9.9.8)
2. Using choco to install Powershell 4
3. Running the prep script referenced in the Ansible docs

I started out on my control station with Ansible 1.9.2 installed with pip. I got around the CERTIFICATE\_VERIFY\_FAILED issue by using the fix-ssl.py callback plugin. Running simple tasks like gathering facts and pinging works. I added a win\_chocolatey task to a basic playbook to install JDK7 on the target machine and it never finished. Upon looking at the logs, I could see choco was sitting at the command line waiting for user input (which it obviously wasn’t going to get) - it was asking to confirm execution of the install script.

I saw there has been a fix applied for that (passing -y into the choco command) but it doesn’t seem to be available under 1.9.2 - I only saw it under the devel branch. So I uninstalled the pip installation of Ansible and cloned the repo and now run Ansible from source. But now I’m back at the CERTIFICATE\_VERIFY\_FAILED problem again as the fix-ssl.py workaround doesn’t work. The callback API changed and I don’t know how to update it.

I guess there are three things I can do from here, in order of preference. Can someone help me to achieve one of the higher preference items?

1. Find a published version of 1.9 that I can install with pip that has the choco fix (I guess this one isn’t very likely!)
2. Rewrite the fix-ssl.py callback to work with v2
3. Keep using 1.9.2 but manually edit the win\_chocolatey module to apply the choco fix  
Any help here would be muchly appreciated!

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![benno\_joy](https://avatars.discourse-cdn.com/v4/letter/b/73ab20/32.png) [@benno\_joy](https://forum.ansible.com/u/benno_joy)\
**Post date:** [August 27, 2015, 11:42am UTC](https://forum.ansible.com/t/unable-to-install-software-on-windows-with-v1-9-2-or-v2/19121/2 "2015-08-27T11:42:49Z")

</div>

Hi Matt,

If you create the a directory name “library” in the same level as your playbook and copy the win\_choclotey.py and chocolatey.ps1 files from [https://github.com/ansible/ansible-modules-extras/tree/devel/windows](https://github.com/ansible/ansible-modules-extras/tree/devel/windows), the playbook run should pick up the new version of the module.

- Benno

---

<div class="post-metadata">

**Author:** ![Matt\_Smith](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@Matt\_Smith](https://forum.ansible.com/u/Matt_Smith)\
**Post date:** [August 28, 2015, 2:00am UTC](https://forum.ansible.com/t/unable-to-install-software-on-windows-with-v1-9-2-or-v2/19121/3 "2015-08-28T02:00:16Z")

</div>

Hey Benno,

That worked against v1.9.2. You effectively gave me my preferred solution. Thanks!!

---

<div class="post-metadata">

**Author:** ![Luis\_Echegaray](https://avatars.discourse-cdn.com/v4/letter/l/71c47a/32.png) [@Luis\_Echegaray](https://forum.ansible.com/u/Luis_Echegaray)\
**Post date:** [September 11, 2015, 1:02pm UTC](https://forum.ansible.com/t/unable-to-install-software-on-windows-with-v1-9-2-or-v2/19121/4 "2015-09-11T13:02:58Z")

</div>

my hero!
