Use IP variable rather than host

Hi,

In AWX I have a bunch of hosts that are not accessible by their name.

All hosts have their own stored variables.

I want to connect to the host via one of the variables:

“private_ip_address”: “x.x.x.x”

How do I connect to all hosts via the private IP variable rather than the name?

Cheers

solved this by using the below in the inventory variables:

ansible_host: “{{ private_ip_address }}”