community.openwrt.ping module – Verify ability to communicate with OpenWrt targets
Note
This module is part of the community.openwrt collection (version 1.9.0).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.openwrt.
To use it in a playbook, specify: community.openwrt.ping.
Synopsis
The community.openwrt.ping module tests the ability to log in to remote OpenWrt machines and execute commands.
This is a simple way to verify that your host is reachable and that you have valid credentials.
Note
This module has a corresponding action plugin.
Parameters
Parameter |
Comments |
|---|---|
Data to return in the ping response. The special value |
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: full This action does not modify state. |
Can run in |
|
Support: N/A This action does not modify state. |
Returns details on what has changed (or possibly needs changing in |
|
Platform: OpenWrt |
Target platform for this module. |
Notes
Note
This module is designed for OpenWrt devices without Python installed.
This module does not support check mode.
Starting with version 1.9.0 of this collection, this module is implemented in
ucode.
Examples
- name: Test connection to OpenWrt device
community.openwrt.ping:
- name: Test with custom data
community.openwrt.ping:
data: hello
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Response from the ping module. Returned: always Sample: |