Per the win_find documentation that module is new as of ansible version 2.3 which has not yet been released.
On Tue, Feb 21, 2017 at 8:22 AM norricorp <[email protected]> wrote: > Hi, > if I have a task of > - name: find all the files in c/temp > find: > paths: c:\temp > > then it fails which is fine because it is working on a windows machine. > The important thing is that the syntax is good. > > But if have what I actually want > > - name: find all the files in c/temp > win_find: > paths: c:\temp > > then I get a syntax error of > > ERROR! no action detected in task. This often indicates a misspelled > module name, or incorrect module path. > > The error appears to have been in > '/home/jnorris/ansible_playbooks/debug_playbook.yml': line 23, column 7, > but may > be elsewhere in the file depending on the exact syntax problem. > > The offending line appears to be: > - "{{ groups.centosServers }}" > - name: find all the files in c/temp > ^ here > > Equally if I use win_shell, I get no syntax errors. Why is win_find not > being recognised? What am I doing wrong? > > Regards, > John > > -- > 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/de0cc091-4a69-4f69-8a8d-efa0dea27324%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/de0cc091-4a69-4f69-8a8d-efa0dea27324%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Matt Martz @sivel sivel.net -- 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/CAD8N0v-hxbDUxuH834Z%3DGPPf7POvFa2D_XOSj6756Tru%2BDEXhQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
