# Unable to do basic win\_ping from CentOS7 to Windows 2012

**URL:** <https://forum.ansible.com/t/unable-to-do-basic-win-ping-from-centos7-to-windows-2012/25377>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [August 30, 2017, 8:44pm UTC](https://forum.ansible.com/t/unable-to-do-basic-win-ping-from-centos7-to-windows-2012/25377 "2017-08-30T20:44:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [August 30, 2017, 8:44pm UTC](https://forum.ansible.com/t/unable-to-do-basic-win-ping-from-centos7-to-windows-2012/25377/1 "2017-08-30T20:44:48Z")

</div>

If you have configured WinRM using the ConfigureRemotingForAnsible.ps1 script I would highly advise you to use HTTPS over port 5986 instead of HTTP. For one HTTP is sent over in cleartext and your credentials can be seen by anyone listening in. The other warning you are getting is because the cert validation variable is not correct, it should be ansible\_winrm\_server\_cert\_validation.

Change your inventory to be

> ansible\_user: ansibleadmin  
> ansible\_password: Passw0rd  
> ansible\_port: 5986  
> ansible\_connection: winrm  
> ansible\_winrm\_transport: ntlm  
> ansible\_winrm\_server\_cert\_validation: ignore

Thanks

Jordan

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [August 30, 2017, 9:02pm UTC](https://forum.ansible.com/t/unable-to-do-basic-win-ping-from-centos7-to-windows-2012/25377/2 "2017-08-30T21:02:50Z")

</div>

No worries, glad I could help.

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [August 31, 2017, 9:26am UTC](https://forum.ansible.com/t/unable-to-do-basic-win-ping-from-centos7-to-windows-2012/25377/3 "2017-08-31T09:26:34Z")

</div>

Its odd that you are getting the insecure request warnings - I am wondering if you are running ansible from a folder with a different ansible.cfg in it perhaps, as the ansible\_winrm\_server\_cert\_validation: ignore doesn’t seem to be taking effect.

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [August 31, 2017, 9:27am UTC](https://forum.ansible.com/t/unable-to-do-basic-win-ping-from-centos7-to-windows-2012/25377/4 "2017-08-31T09:27:02Z")

</div>

Please share your playbook or command line

---

<div class="post-metadata">

**Author:** ![uday1kiran](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/uday1kiran/32/1552_2.png) [@uday1kiran](https://forum.ansible.com/u/uday1kiran)\
**Post date:** [July 22, 2019, 12:38pm UTC](https://forum.ansible.com/t/unable-to-do-basic-win-ping-from-centos7-to-windows-2012/25377/5 "2019-07-22T12:38:56Z")

</div>

It is working when I kept port: 5985
