# win\_chocolatey missing/broken in Ansible 1.9.2?

**URL:** <https://forum.ansible.com/t/win-chocolatey-missing-broken-in-ansible-1-9-2/18718>\
**Category:** Ansible Project\
**Created:** [July 9, 2015, 6:38pm UTC](https://forum.ansible.com/t/win-chocolatey-missing-broken-in-ansible-1-9-2/18718 "2015-07-09T18:38:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Levitt](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Post date:** [July 9, 2015, 6:38pm UTC](https://forum.ansible.com/t/win-chocolatey-missing-broken-in-ansible-1-9-2/18718/1 "2015-07-09T18:38:22Z")

</div>

Ansible 1.9.2 on MacOSX.

[https://github.com/ansible/ansible/issues/11539](https://github.com/ansible/ansible/issues/11539)

This code:

`  
tasks:

- name: Get Powershell remoting script  
win\_chocolatey:  
name: PSWindowsUpdate  
state: present  
`

responds with:

`ERROR: state is not a legal parameter in an Ansible task or handler`

the documentation for win\_chocolatey says:

`New in version 1.9`

---

<div class="post-metadata">

**Author:** ![Michael\_Legleux](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@Michael\_Legleux](https://forum.ansible.com/u/Michael_Legleux)\
**Post date:** [July 9, 2015, 9:24pm UTC](https://forum.ansible.com/t/win-chocolatey-missing-broken-in-ansible-1-9-2/18718/2 "2015-07-09T21:24:53Z")

</div>

Not the correct indent level?

`tasks:`  
`- name: Get Powershell remoting script`  
`win_chocolatey:`  
`name: PSWindowsUpdate`  
`state: present`

---

<div class="post-metadata">

**Author:** ![Jason\_Levitt](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@Jason\_Levitt](https://forum.ansible.com/u/Jason_Levitt)\
**Post date:** [July 10, 2015, 7:02pm UTC](https://forum.ansible.com/t/win-chocolatey-missing-broken-in-ansible-1-9-2/18718/3 "2015-07-10T19:02:58Z")

</div>

You’re correct. Even though my YAML is valid, the indent level causes Ansible to produce that error.

Thanks for the tip.

J
