unable to ping windows machine

server16 | UNREACHABLE! => {
“changed”: false,
“msg”: “basic: HTTPConnectionPool(host=‘server16’, port=5985): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f8b2e02ed90>, ‘Connection to 52.168.175.51 timed out. (connect timeout=30)’))”,
“unreachable”: true

[windows]
server16

[windows:vars]
ansible_user=root
ansible_password=password
ansible_connection=winrm
ansible_winrm_transport=basic
ansible_port=5986
ansible_winrm_server_cert_validation=ignore

plaese give me solution for this error. In windows machine i have run the power shell script that has shared in github. my winrm service also working fine, But still facing same issue.

Hi ,

Please provide the ip address of server in hosts file and then check

hi if you don’t have problem using open ssh install it in your windows server and use it it works well

Thanks
Prajwal

Hii,

Issue Resolved.

Thanks for your response.