ping test from linux to windows

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.

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, 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.

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 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 :slight_smile: