Discussion:
[ansible-project] win_chocolatey missing/broken in Ansible 1.9.2?
Slim Slam
2015-07-09 18:38:22 UTC
Permalink
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
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e3aa5e71-6ded-4e7d-bc97-aa0bf929da48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michael Legleux
2015-07-09 21:24:53 UTC
Permalink
Not the correct indent level?


tasks:
- name: Get Powershell remoting script
win_chocolatey:
name: PSWindowsUpdate
state: present
Post by Slim Slam
Ansible 1.9.2 on MacOSX.
https://github.com/ansible/ansible/issues/11539
- name: Get Powershell remoting script
name: PSWindowsUpdate
state: present
ERROR: state is not a legal parameter in an Ansible task or handler
New in version 1.9
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ea44ce8a-3f75-400e-bfc0-3c7ca7a8f490%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Slim Slam
2015-07-10 19:02:58 UTC
Permalink
You're correct. Even though my YAML is valid, the indent level causes
Ansible to produce that error.

Thanks for the tip.

J
Post by Michael Legleux
Not the correct indent level?
- name: Get Powershell remoting script
name: PSWindowsUpdate
state: present
Post by Slim Slam
Ansible 1.9.2 on MacOSX.
https://github.com/ansible/ansible/issues/11539
- name: Get Powershell remoting script
name: PSWindowsUpdate
state: present
ERROR: state is not a legal parameter in an Ansible task or handler
New in version 1.9
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/68b6c8bf-cdac-444a-b9f7-066433567818%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...