win_file_version

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:

Name should be indented under tasks.

Mike

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