AWX VMWare Dynamic Script Updating IP Address as Cluster IP instead of Server IP Address

I have been testing VMWare Dynamic inventory script (which ships with AWX 4.0.0.0) and recently noticed an issue where the sync results in the dynamic inventory script pulling and updating the IP address for the server as the cluster IP of the server (for the servers which are built in cluster but works fine for all other servers).

Is there any parameter which can be used to force the dynamic script to avoid this?

Thanks

Hello Community Members,

Could anyone please help by providing your expert opinion on this?

Hello,

Take a look at the vmware_inventory config file https://github.com/ansible/ansible/blob/devel/contrib/inventory/vmware_inventory.ini
The host_pattern parameter is what defines which IP address to use. You can pass this as extra var in the inventory source.

Hello Sergio,

Thanks for your response. I have checked this already, the issue is that somehow, the vmware inventory script is not able to pull the correct server IP Address in any of the paramters which is why i am not able to override it using env variables for the inventory source.