vmware_vm_inventory.yml

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

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

best regards,
Patrick

Hi,

Did you manage to resolve your issue?

Best regards,
DCL

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