# FYI: chocolatey changes

**URL:** <https://forum.ansible.com/t/fyi-chocolatey-changes/18101>\
**Category:** Ansible Developer\
**Created:** [April 28, 2015, 9:23am UTC](https://forum.ansible.com/t/fyi-chocolatey-changes/18101 "2015-04-28T09:23:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathieu\_Guillaume](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@Mathieu\_Guillaume](https://forum.ansible.com/u/Mathieu_Guillaume)\
**Post date:** [April 28, 2015, 9:23am UTC](https://forum.ansible.com/t/fyi-chocolatey-changes/18101/1 "2015-04-28T09:23:15Z")

</div>

There have been some changes in the latest version(s?) of chocolatey that break the win\_chocolatey module:

- It now prompts for confirmation of install/uninstall,

- The output is different.

I have some local hacks to win\_chocolatey.ps1 that make it work again, but probably not good enough for a PR as I just change things globally without checking for the chocolatey version:

- Add a ‘-y’ flag to the install/uninstall commands invocations,
- Check for the “was successful” string instead of “has finished successfully” in the output (didn’t check what change was needed for uninstall). Could probably use the chocolatey exit code instead here.

---

<div class="post-metadata">

**Author:** ![Peter\_Mounce](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@Peter\_Mounce](https://forum.ansible.com/u/Peter_Mounce)\
**Post date:** [April 30, 2015, 5:06pm UTC](https://forum.ansible.com/t/fyi-chocolatey-changes/18101/2 "2015-04-30T17:06:59Z")

</div>

I found that [https://github.com/ansible/ansible-modules-extras/pull/398](https://github.com/ansible/ansible-modules-extras/pull/398) worked for me, as far as installation of packages (latest & specific) go (I don’t have a use-case for upgrade or different sources).

Later chocolatey deprecated custom sources like webpi, so I have written a webpicmd module and PR’d that - [https://github.com/ansible/ansible-modules-extras/pull/438](https://github.com/ansible/ansible-modules-extras/pull/438).
