Documentation
PLEASE NOTE: This document applies to v2.18 version and not to the latest stable release v2.19
Documentation for other releases can be found by using the version selector in the top right of any doc page.ping
Try to connect to a host, verify a usable python and return pong on success.
This is a simple connectivity test module. It returns pong on success.
If the module is called but the connection fails, the task will fail.
Attributes
check_mode:
support: always
Parameters
| Parameter | Required | Type | Values | Description |
|---|---|---|---|---|
| data | string | Data to return in the ping result. [default: "pong"] |
Example
- ping:
- name: Ping with custom data
ping:
data: "custom_data"
register: result
- name: Verify ping response
debug:
var: result.ping