Hi,
i have put one ip address like this 2.2.2.2 lab in hosts file. After that i made a group in inventory file of ansible like this [labs-section]. Then i tried to ping using ansible -m ping labs-section but its showing unreachable. I had also shared ssh keys and when i ssh lab i logged in without prompt for password.
lab