To get the hostnames of the machines using ansible command
ansible webservers -m shell -a 'hostname'
192.168.1.139 | CHANGED | rc=0 >>
pandian-VirtualBox
To get the hostnames of the machines using ansible command
ansible webservers -m shell -a 'hostname'
192.168.1.139 | CHANGED | rc=0 >>
pandian-VirtualBox