I opened issue with explain why it's true only in theory. https://github.com/ansible/ansible-modules-extras/issues/159
On Wednesday, December 17, 2014 5:01:22 PM UTC+2, Brian Coca wrote: > > for windows modules the detected extension is .ps1 > > On Wed, Dec 17, 2014 at 6:11 AM, Netanel Maman <[email protected] > <javascript:>> wrote: > > solution: > > > > create this file: ansible/lib/ansible/modules/extras/windows/__init__.py > > make clean > > make install > > > > -- > > behind the scenes: > > setuptools don't copy win_chocolatey.py to install directory without > > __init__.py file. > > ansible detect plugin by .py extension, so win_chocolatey not detected.. > > > > On Monday, December 8, 2014 7:47:30 AM UTC+2, Rob White 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 [email protected] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/ansible-project/f47721bf-f795-4177-b279-766d4dc7f288%40googlegroups.com. > > > > > > For more options, visit https://groups.google.com/d/optout. > > > > -- > Brian Coca > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/abc792cc-c62f-4786-9a9c-9f62490bc42b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
