# win\_find module

**URL:** <https://forum.ansible.com/t/win-find-module/23786>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [February 21, 2017, 2:22pm UTC](https://forum.ansible.com/t/win-find-module/23786 "2017-02-21T14:22:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Norris](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@John\_Norris](https://forum.ansible.com/u/John_Norris)\
**Post date:** [February 21, 2017, 2:22pm UTC](https://forum.ansible.com/t/win-find-module/23786/1 "2017-02-21T14:22:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [February 21, 2017, 2:30pm UTC](https://forum.ansible.com/t/win-find-module/23786/2 "2017-02-21T14:30:34Z")

</div>

Per the win\_find documentation that module is new as of ansible version 2.3 which has not yet been released.

---

<div class="post-metadata">

**Author:** ![John\_Norris](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@John\_Norris](https://forum.ansible.com/u/John_Norris)\
**Post date:** [February 21, 2017, 2:46pm UTC](https://forum.ansible.com/t/win-find-module/23786/3 "2017-02-21T14:46:16Z")

</div>

Ah - that would explain it!  
Many thanks Matt.
