# Get VM ipAdress on AWX hostname\_variable using VMWare dynamic inventory

**URL:** <https://forum.ansible.com/t/get-vm-ipadress-on-awx-hostname-variable-using-vmware-dynamic-inventory/33619>\
**Category:** AWX Project\
**Tags:** vmware, awx\
**Created:** [August 14, 2020, 8:21pm UTC](https://forum.ansible.com/t/get-vm-ipadress-on-awx-hostname-variable-using-vmware-dynamic-inventory/33619 "2020-08-14T20:21:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alfredo\_Albuerne](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@Alfredo\_Albuerne](https://forum.ansible.com/u/Alfredo_Albuerne)\
**Post date:** [August 14, 2020, 8:21pm UTC](https://forum.ansible.com/t/get-vm-ipadress-on-awx-hostname-variable-using-vmware-dynamic-inventory/33619/1 "2020-08-14T20:21:56Z")

</div>

Hello:

I’m kind of new using VMWare dynamic inventory plugin vmware\_vm\_inventory in AWX.  
I was wondering if there is a way to return the VM ip address in the hostname\_variable in AWX VMware dynamic inventory.  
I’m using AWX 12.0.0 and Ansible 2.9.9 running on CentOS 8 server.  
I was able to get the result of alias\_pattern: “{{ config.name }}” in the hostname\_variable for each instance but I didn’t find a way to get the VM ip address. In my case the name of the VM in vCenter does not work. I to target servers using the ip address.

Please, could you share some of your knowledge and tell me if is it possible?

Thanks in advance.

Best regards,

Alfredo.
