winrm-install

24 views
Skip to first unread message

Manish Kumar

unread,
Aug 22, 2019, 8:51:21 AM8/22/19
to Ansible Project

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

Manish Kumar

unread,
Aug 22, 2019, 8:54:15 AM8/22/19
to Ansible Project
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:
Reply all
Reply to author
Forward
0 new messages