ping module
The module that connects to a host, starts Python there and replies pong, proving the whole path to the host works.
In more detail
Despite its name it is not a network ping: success means the connection, the login and the Python interpreter all work, not merely that packets arrive. It never changes anything, so it reports SUCCESS with changed false. It is the first command to run against a new host.
Example
ansible all -m ansible.builtin.pingRelated terms
- ping — A network tool that sends a small test message to a machine and times the reply, showing only that the machine is reachable.
- ad hoc command — A single Ansible module run against a set of hosts straight from the command line, without writing a playbook.
- managed node — A machine that Ansible configures; it needs only a way in, normally SSH, and a Python interpreter, not Ansible itself.
Taught in
- Ansible Architecture And The Control Node — Ansible Configuration Management at Scale
- Your First Ad Hoc Command — Ansible Configuration Management at Scale
- Connections And Privilege Escalation — Ansible Configuration Management at Scale
- SSH Keys And An Account For Ansible — RHCE in Ansible (EX294): Automate Red Hat Systems