# Inventory based on VMware

**URL:** <https://forum.ansible.com/t/inventory-based-on-vmware/36974>\
**Category:** AWX Project\
**Tags:** vmware, awx\
**Created:** [August 11, 2022, 12:29pm UTC](https://forum.ansible.com/t/inventory-based-on-vmware/36974 "2022-08-11T12:29:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergio\_Garcia](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Sergio\_Garcia](https://forum.ansible.com/u/Sergio_Garcia)\
**Post date:** [August 11, 2022, 12:29pm UTC](https://forum.ansible.com/t/inventory-based-on-vmware/36974/1 "2022-08-11T12:29:02Z")

</div>

Hi Everyone,

I’m a noob on AWX and I’m starting to use it. It’s working fine, but I have a issue when I tried to create an inventory based on VMware.

The importation of the VMs are correct, but per each VM imported the Variables field of each of them have default values belong on vmware\_VM\_inventory.py

_default: [ ‘name’, ‘config.cpuHotAddEnabled’, ‘config.cpuHotRemoveEnabled’,_  
_‘config.instanceUuid’, ‘config.hardware.numCPU’, ‘config.template’,_  
_‘config.name’, ‘config.uuid’, ‘guest.hostName’, ‘guest.ipAddress’,_  
_‘guest.guestId’, ‘guest.guestState’, ‘runtime.maxMemoryUsage’,_  
_‘customValue’, ‘summary.runtime.powerState’, ‘config.guestId’,_  
_]_

I would like to not import this information, because if this variables field is not empty, all playbooks fails me.

I don’t know if it’s possible to ignore this variables when I execute a playbook or I can to import the VMs without this data.  
I tried to modify the vmware\_VM\_inventory.py script and remove all fields of “properties” but if I do that, the import stops working.

As I told previously, I’m starting to take my first steps in this world and I’m stuck at this point.

Kind Regards
