# win\_file\_version

**URL:** <https://forum.ansible.com/t/win-file-version/31117>\
**Category:** Ansible Project\
**Created:** [August 24, 2019, 10:25am UTC](https://forum.ansible.com/t/win-file-version/31117 "2019-08-24T10:25:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manish\_Kumar](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Post date:** [August 24, 2019, 10:25am UTC](https://forum.ansible.com/t/win-file-version/31117/1 "2019-08-24T10:25:49Z")

</div>

Hi All,

Is there any solution to know why ansible is throwing below error even after correct syntax ? It has become very difficult to find as there is no clue even after referring ansible document , everything seems to be fine .

Parsed /home/manish/mk/ansible/win/inventory.yml inventory source with ini plugin  
ERROR! ‘win\_file\_version’ is not a valid attribute for a Play

The error appears to be in ‘/home/manish/mk/ansible/win/win\_file\_version.yml’: line 7, column 3, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

tasks:

- name: testing  
^ here

Playbook:

---

<div class="post-metadata">

**Author:** ![Mike\_Eggleston](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Post date:** [August 24, 2019, 3:50pm UTC](https://forum.ansible.com/t/win-file-version/31117/2 "2019-08-24T15:50:10Z")

</div>

Name should be indented under tasks.

Mike

---

<div class="post-metadata">

**Author:** ![Manish\_Kumar](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Post date:** [August 25, 2019, 4:46am UTC](https://forum.ansible.com/t/win-file-version/31117/3 "2019-08-25T04:46:54Z")

</div>

Thanks Mike !

Please insert in the yml file what exactly you want to highlight for better understanding as still I receive same error .

ERROR! Syntax Error while loading YAML.  
mapping values are not allowed in this context

The error appears to be in ‘/home/manish/mk/ansible/win/win\_file\_version.yml’: line 7, column 20, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: testing file version  
win\_file\_version:  
^ here
