# vmware\_vm\_inventory.yml

**URL:** <https://forum.ansible.com/t/vmware-vm-inventory-yml/36292>\
**Category:** AWX Project\
**Tags:** vmware, awx\
**Created:** [February 4, 2022, 11:29am UTC](https://forum.ansible.com/t/vmware-vm-inventory-yml/36292 "2022-02-04T11:29:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leto\_Home](https://avatars.discourse-cdn.com/v4/letter/l/b782af/32.png) [@Leto\_Home](https://forum.ansible.com/u/Leto_Home)\
**Post date:** [February 4, 2022, 11:29am UTC](https://forum.ansible.com/t/vmware-vm-inventory-yml/36292/1 "2022-02-04T11:29:03Z")

</div>

Hi folks

I am new to the Ansible AWX environment. I installed a working Docker AWX container 17.1.0 last year. My inventories were running against our VMware infrastructure until 12/27/21, using the “community.vmware.vmware\_vm\_inventory” plugin. Nothing was changed in the source files. The following error occurs now since 12/28/21

_ **vmware\_vm\_inventory.yml with autoplugin: Could not template any hostname for host, errors for each preference:** _  
_ **config.name + “\_” + config.uuid: ‘config’ is undefined** _

Does anyone know this problem? I tried to find answers on the internet, but without success. So I hope that someone here can help me.

Thanks in advance  
Thomas

---

<div class="post-metadata">

**Author:** ![Patrick\_Dreher](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@Patrick\_Dreher](https://forum.ansible.com/u/Patrick_Dreher)\
**Post date:** [February 10, 2022, 1:44pm UTC](https://forum.ansible.com/t/vmware-vm-inventory-yml/36292/2 "2022-02-10T13:44:57Z")

</div>

Hi,

the inventory plugin behaves other than you would expect, coming from Ansible.  
… At least it does so from my point of view.

You might want to try and put your full template string into single quotes (like this: ‘config.name + “\_” + config.uuid’_)_  
In the last example in the documentation it is also done like that:  
[https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware\_vm\_inventory\_inventory.html](https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_vm_inventory_inventory.html)

best regards,  
Patrick

---

<div class="post-metadata">

**Author:** ![Datacenter\_Luxembour](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@Datacenter\_Luxembour](https://forum.ansible.com/u/Datacenter_Luxembour)\
**Post date:** [November 24, 2022, 10:51am UTC](https://forum.ansible.com/t/vmware-vm-inventory-yml/36292/3 "2022-11-24T10:51:31Z")

</div>

Hi,

Did you manage to resolve your issue?

Best regards,  
DCL

---

<div class="post-metadata">

**Author:** ![Datacenter\_Luxembour](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@Datacenter\_Luxembour](https://forum.ansible.com/u/Datacenter_Luxembour)\
**Post date:** [December 5, 2022, 12:31pm UTC](https://forum.ansible.com/t/vmware-vm-inventory-yml/36292/4 "2022-12-05T12:31:58Z")

</div>

Hi,

To let know everyone.  
We had this issue, because one VM had an invalid state and blocked everything.  
We removed it and it starting to work again.

Best regards,  
DCL
