Facing error while pinging window host for ansible


Can somebody please help me with this?

Hi @Nidhi-Thakur,

Apparently you’re on AWS, be sure that port 5986 is authorized on security group. Also, your windows:vars should be like below :

[windows]
172.31.2.61
[windows:vars]
ansible_connection=winrm
ansible_user=Administrator
ansible_password=MySuperAdminPassword
ansible_winrm_server_cert_validation=ignore

Regard

1 Like