# win\_find: What am I doing wrong here?  I'm following the exact syntax from ansible document

**URL:** <https://forum.ansible.com/t/win-find-what-am-i-doing-wrong-here-im-following-the-exact-syntax-from-ansible-document/25706>\
**Category:** Ansible Project\
**Created:** [October 9, 2017, 7:13pm UTC](https://forum.ansible.com/t/win-find-what-am-i-doing-wrong-here-im-following-the-exact-syntax-from-ansible-document/25706 "2017-10-09T19:13:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcalfa1](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@marcalfa1](https://forum.ansible.com/u/marcalfa1)\
**Post date:** [October 9, 2017, 7:13pm UTC](https://forum.ansible.com/t/win-find-what-am-i-doing-wrong-here-im-following-the-exact-syntax-from-ansible-document/25706/1 "2017-10-09T19:13:56Z")

</div>

**ERROR! ‘paths’ is not a valid attribute for a Task**

**The error appears to have been in ‘/home/vagrant/ansible/win-find.yml’: line 6, column 5, but may**  
**be elsewhere in the file depending on the exact syntax problem.**

**The offending line appears to be:**

**- win\_find:**  
**^ here**

[vm1 ansible]$ ansible --version  
ansible 2.3.1.0  
config file = /etc/ansible/ansible.cfg  
configured module search path = Default w/o overrides  
python version = 2.6.6 (r266:84292, Aug 18 2016, 15:13:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]  
[vm1 ansible]$ cat win-find.yml

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [October 9, 2017, 7:20pm UTC](https://forum.ansible.com/t/win-find-what-am-i-doing-wrong-here-im-following-the-exact-syntax-from-ansible-document/25706/2 "2017-10-09T19:20:51Z")

</div>

Incorrect indentation, add two spaces to paths and patterns.
