Centos 7
Ansible 2.1
Windows 7 on remote node
My inventory file (/etc/ansible/hosts) contains…
[windows]
123.123.123.123.mycompany.com
My /etc/ansible/group_vars/windows.yml file contains…
ansible_user: username
ansible_password: password
ansible_port: 5985
ansible_connection: winrm
ansible_winrm_server_cert_validation: ignore
But when I try to run win_ping I get this:
**$ansible windows -m win_ping -c winrm --vvv**
**No config file found; using defaults**
**<123.123.123.123.mycompany.com> ESTABLISH WINRM CONNECTION FOR USER: username on port 5985 TO 123.123.123.123.mycompany.com**
**123.123.123.123.mycompany.com | FAILED! => {**
**"failed": true.**
**"msg": "plaintext: 500 WinRMTransport. [Errno -2] Name or service not known"**
**}**
What config file am I missing?
Where should it be located?
What should it contain?
Any suggestions are appreciated.
Jonathan