Could you paste the task from your playbook that's causing the error?

On Mon, Dec 8, 2014 at 12:47 AM, Rob White <robwhit...@gmail.com> wrote:

> I'm having trouble with win_chocolatey module in a playbook.
>
> I upgraded from 1.7 to 1.9 and then ran the following successfully:
>
> ansible windows -i inventories/windows -m win_chocolatey -c winrm -u
>> administrator -k -a 'package=notepadplusplus'
>> SSH password:
>> 1.2.3.4 | success >> {
>>     "changed": true,
>>     "chocolatey command": "C:\\ProgramData\\chocolatey\\bin\\choco.exe
>> install notepadplusplus -source https://chocolatey.org/api/v2/";,
>>     "chocolatey_success": "true"
>
> }
>
>
> So then I added to a playbook as per the documentation but I get the
> following error:
>
> ansible-playbook hosts_windows.yml -i inventories/windows
>> ERROR: win_chocolatey is not a legal parameter in an Ansible task or
>> handler
>
>
> Why would ansible see the module, but ansible-playbook fail?
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/ca1815cc-565f-4bd7-8492-897dc382b66a%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/ca1815cc-565f-4bd7-8492-897dc382b66a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAH%2BKTJ4n%2Bz7UEb76cjBZeYE74VypCXEny3Uo8BLhPNBhi6Qnow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to