- Download the
inventory.ini
file and replace the attributes for SSH and sudo password. - You can ping a group of machines using the following command.
ansible web -i inventory.ini -m ping
- You can ping a particular machine using the following command.
ansible server1 -i inventory.ini -m ping