Connectivity
Set up hosts by editing the hosts' file in the Ansible directory
$ sudo nano /etc/ansible/hosts To check the connection to hosts first change the directory to /etc/Ansible
$ cd /etc/ansible To check whether Ansible is connecting to hosts, use ping command
$ ansible –m ping To check on servers individually
$ ansible -m ping server name To check a particular server group
$ ansible -m ping servergroupnameLast updated