Playbook on Ping
Updated Dec 02, 2020 ·
Overview
This lab creates a simple Ansible playbook that checks connectivity to the managed hosts with the ping module.
Diagram:

# sample-ping.yml
# ansible -m ping hosts
---
- name: Ping all hosts
hosts: all
tasks:
- name: Ping all servers
action: ping
To test,
ansible-playbook playbooks/sample-ping.yml
