# ping test from linux to windows

**URL:** <https://forum.ansible.com/t/ping-test-from-linux-to-windows/15798>\
**Category:** Ansible Developer\
**Tags:** windows\
**Created:** [July 29, 2014, 7:53am UTC](https://forum.ansible.com/t/ping-test-from-linux-to-windows/15798 "2014-07-29T07:53:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yvonne\_Tee](https://avatars.discourse-cdn.com/v4/letter/y/a5b964/32.png) [@Yvonne\_Tee](https://forum.ansible.com/u/Yvonne_Tee)\
**Post date:** [July 29, 2014, 7:53am UTC](https://forum.ansible.com/t/ping-test-from-linux-to-windows/15798/1 "2014-07-29T07:53:39Z")

</div>

Hi all,

I am trying to setup a ping test from linux to windows.

I have already setup the keypair exchange between these 2 servers.  
Have also setup the host in /etc/ansible/host

Below is the playbook content.

hosts: windows  
user: admin  
vars:  
ansible\_python\_intepreter: /cygdrive/c/Python27/python

tasks:  
action: ping

I encountered the following error.  
_invalid output was: C:\Python2python.exe: can’t open file ‘/home/admin/.ansible/tmp/ansible-tmp-1406105115.96-168455463164346/setup’: [Errno 2] No such file or directory_

I understand that the latter path can be set in remote\_tmp in ansible.cfg.  
What is the purpose of the field?

Thanks.

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [July 29, 2014, 10:44am UTC](https://forum.ansible.com/t/ping-test-from-linux-to-windows/15798/2 "2014-07-29T10:44:21Z")

</div>

Yvonne,  
You won’t be able to use a Windows node as a “regular” target node. You should read up on [http://docs.ansible.com/intro\_windows.html](http://docs.ansible.com/intro_windows.html), and I’m also pretty sure you’re in the wrong forum. the “Ansible Project” forum is a more suitable forum for questions like these.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [July 29, 2014, 1:43pm UTC](https://forum.ansible.com/t/ping-test-from-linux-to-windows/15798/3 "2014-07-29T13:43:39Z")

</div>

ansible-project is a better list, but there’s a quick solution - try “win\_ping” for asserting connectivity to Windows hosts.

Windows support does not use Python on the remote, and has no need of cygwin.

Just do: “connection: windows” and refer to the windows docs on [docs.ansible.com](http://docs.ansible.com) for more information.

We’re never going to support cygwin, and while Cygwin was a noble effort back in the day, we would like it go away 🙂
