I am trying to set up my ansible host to connect to windows. However ping is failing with the following error:
sudo ansible win -m win_ping hostname | UNREACHABLE! => { "changed": false, "msg": "basic: HTTPConnectionPool(host='hostname', port=5986): Read timed out. (read timeout=30)", "unreachable": true }
pywinrm is installed on my linux box and WinRM is installed on the windows box.
Hosts file:
[win]
systemname
[win:vars]
ansible_user=username
ansible_password=passord
ansible_connection=winrm
ansible_winrm_scheme=http
ansible_winrm_server_cert_validation=ignore
ansible_winrm_transport=basic
Appreciate any advice. Thanks.
0.0.0.0
? (You can test it withnetstat -an
) – dan1st