AWX to Remote Server with NAT IP

Hi All

Looking for a solution for below scenario

  1. AWX Server – Remote Server is connecting Via only natted IP and only AWX knows this IP , Remote Server is not Aware of this IP .

Ex : AWX Server IP – 10.9.50.5
: Remote Server - Natted IP ( 10.10.98.126) , Local IP 10.0.252.71

while adding the Remote Server to AWX I Used Natted IP ( 10.10.98.126 - Only AWX knows this IP ).

In this case if i want to do any operation (Ex :remote Copy with Condition ) on the server where i need to compare the local IP wont work . Because AWX inventory IP is 10.10.98.126 and Remote Server IP is 10.0.252.71

Is there any solution for this ? Can we give multiple IP for one Host in AWX and Route Conditons

Thanks
Aneesh

Hello,

Maybe you could add a variable to the host, like “real_ip: XX.YY.ZZ.WW” and use that when needed. To be more generic you can check in the playbook if the “real_ip” is defined and execute accordingly.

Nuno Jordão