On Thursday, August 22, 2019 at 6:21:21 PM UTC+5:30, Manish Kumar wrote:
>
>
> Hi ,
>
> What could be the reason for below error ? any idea ?
> ---
> - name: Install git
>   ^ here
>
>
> ---
> - name: Install git
>   hosts: all
>   tasks:
>   win_chocolatey:
>     name: git
>     state: present
>


Full error :

Using /etc/ansible/ansible.cfg as config file
host_list declined parsing /home/manish/mk/ansible/inventory.yml as it did 
not pass its verify_file() method
script declined parsing /home/manish/mk/ansible/inventory.yml as it did not 
pass its verify_file() method
Parsed /home/manish/mk/ansible/inventory.yml inventory source with ini 
plugin
ERROR! 'win_chocolatey' is not a valid attribute for a Play

The error appears to be in '/home/manish/mk/ansible/git.yml': line 2, 
column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

---
- name: Install git
  ^ here
 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7ce25776-035b-4584-97a8-5058af63a0b9%40googlegroups.com.

Reply via email to