I am new to ansible, I want to populate my host file by finding the private ip of instances which are behind the ec2 elb. So that my inventory file is consistent with actual running instances.
I don’t seem to find a way to do that. any pointer will be helpful.