It should work without the suffix. However, I'm seeing the same issue with 1.8, 1.8.1 and 1.8.2.
In my case, it works when using ansible to run an adhoc command, but not ansible-playbook: ansible -i inventory --module-path modules -m win_exe I'll see if I can figure out what's going on... On Thu, Jan 8, 2015 at 11:04 PM, Tony Kinsley <[email protected]> wrote: > I have a custom windows module that I have been using in my playbooks and > I just went to update to the version 1.8.2 ( installed with pip ). I went > to run a playbook that I run all the time and got this error: > /usr/local/bin/ansible-playbook -i ./core/inventory.py --module-path > ./modules/ ./main.yml > ERROR: win_exe is not a legal parameter in an Ansible task or handler > > My module is in a file called win_exe.ps1 ( it's basically just runs a > windows command but adds in support for the creates keyword ) located > ./modules. I changed the playbook to specify > > - name: install packages > win_exe.ps1: > exe: 'C:\Users\admin_user\Downloads\myapp.exe' > ArgumentList: '/w /S /v"/l*v > \"C:\Users\admin_user\AppData\Local\Temp\myapp.log\" /qn"' > creates: '{{myapp_root}}/sbin/myapp.exe' > > > and now it works. I was just wondering whether this is expected and when > to expect to require a suffix and when not to expect to need a suffix. > Previously I was running ansible version 1.8. > > Thanks, > Tony > > -- > 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/a15215e0-1b31-49ee-961d-464d2914b72f%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/a15215e0-1b31-49ee-961d-464d2914b72f%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 [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/CAH%2BKTJ5AWLJBpcqb%3DE3OmAKW3fuF9xwivNmG%2BKAMzfnh-%2BecOA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
