Currently trying to see if there is a way I can grab the ip defined in the ansible_host and use that in a playbook. I know there is inventory_hostaname, but these for example are not in dns.
Here is a sample of a playbook which works if the device is registered in dns but fails of course when not. Is there any way I can extract the ip address so I can loop through all devices in the inventory group?