Difficulty: Beginner
Estimated Time: 10 minutes

You will now learn basic ad-hoc command that will "ping" your hosts and return "pong".

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Ansible-Sibelius | 1-Running Your First Ad-hoc Command

Ping Your hosts

Enter the following command: ansible group1 -i myhosts -m ping

The above statement is a single task to ping target host and return pong if the connection is successful.