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

**URL:** <https://forum.ansible.com/t/awx-vmware-dynamic-script-updating-ip-address-as-cluster-ip-instead-of-server-ip-address/30953>\
**Category:** AWX Project\
**Tags:** vmware, awx\
**Created:** [August 5, 2019, 1:04pm UTC](https://forum.ansible.com/t/awx-vmware-dynamic-script-updating-ip-address-as-cluster-ip-instead-of-server-ip-address/30953 "2019-08-05T13:04:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankit2](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Post date:** [August 5, 2019, 1:04pm UTC](https://forum.ansible.com/t/awx-vmware-dynamic-script-updating-ip-address-as-cluster-ip-instead-of-server-ip-address/30953/1 "2019-08-05T13:04:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ankit2](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Post date:** [August 6, 2019, 6:12am UTC](https://forum.ansible.com/t/awx-vmware-dynamic-script-updating-ip-address-as-cluster-ip-instead-of-server-ip-address/30953/2 "2019-08-06T06:12:51Z")

</div>

Hello Community Members,

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

---

<div class="post-metadata">

**Author:** ![sdmorel](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@sdmorel](https://forum.ansible.com/u/sdmorel)\
**Post date:** [August 6, 2019, 12:47pm UTC](https://forum.ansible.com/t/awx-vmware-dynamic-script-updating-ip-address-as-cluster-ip-instead-of-server-ip-address/30953/3 "2019-08-06T12:47:49Z")

</div>

Hello,

Take a look at the vmware\_inventory config file [https://github.com/ansible/ansible/blob/devel/contrib/inventory/vmware\_inventory.ini](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.

---

<div class="post-metadata">

**Author:** ![Ankit2](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Post date:** [August 6, 2019, 1:26pm UTC](https://forum.ansible.com/t/awx-vmware-dynamic-script-updating-ip-address-as-cluster-ip-instead-of-server-ip-address/30953/4 "2019-08-06T13:26:31Z")

</div>

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.
