ansible / ansible.builtin / v2.4.2.0-1 / module / win_ping A windows version of the classic ping module | "added in version" 1.7 of ansible.builtin" Authors: Chris Church (@cchurch) stableinterface | supported by coreansible.builtin.win_ping (v2.4.2.0-1) — module
pip
Install with pip install ansible==2.4.2.0.post1
Checks management connectivity of a windows host.
This is NOT ICMP ping, this is just a trivial test module.
For non-Windows targets, use the M(ping) module instead.
# Test connectivity to a windows host # ansible winserver -m win_ping # Example from an Ansible Playbook - win_ping:
# Induce an exception to see what happens - win_ping: data: crash
data: default: pong description: - Alternate data to return instead of 'pong'. - If this parameter is set to C(crash), the module will cause an exception.
ping: description: value provided with the data parameter returned: success sample: pong type: string