win_chocolatey missing/broken in Ansible 1.9.2?

46 views
Skip to first unread message

Slim Slam

unread,
Jul 9, 2015, 2:38:22 PM7/9/15
to ansible...@googlegroups.com
Ansible 1.9.2 on MacOSX.

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


Michael Legleux

unread,
Jul 9, 2015, 5:24:53 PM7/9/15
to ansible...@googlegroups.com
Not the correct indent level?


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

Slim Slam

unread,
Jul 10, 2015, 3:02:59 PM7/10/15
to ansible...@googlegroups.com
You're correct. Even though my YAML is valid, the indent level causes Ansible to produce that error.

Thanks for the tip.

J
Reply all
Reply to author
Forward
0 new messages