VMware inventory available?

Is there already an external VMware inventory script available? I would love to have vCenter grouping information such as Datacenter/Cluster/Pools as ansible groups - as they are hierarchical they would be probably groups in groups.
Is it already there and I missed it or are there any (unfinished) attempts towards that? If not, is anyone else interested in this?

TIA,
Oliver

Have a look here: https://github.com/ansible-provisioning/ansible-provisioning

And I have absolutely no idea why this hasn’t been submitted for core yet.

​+1​

Thanks, I found this a while ago but I could not find the inventory part, seems to be about provisioning only, am I wrong? Documentation is a bit sparse.

This is something Dag Wieers started. It’s not official, despite the organization name.

I’d really prefer things get submitted to core but we disagreed on whether something was simple enough.

I’d encourage all the VMware and other things to work their way into core, and if someone has any doubts about whether something is acceptable, submit it first here – we’re generally pretty open minded about some things, but some things being done in that repo were very very site specific.

Once these modules were part of core, before they were removed again.

     https://github.com/ansible/ansible/pull/1275

The only reason for us to put it in its own place was to be able to codevelop the provisioning specific modules that you considered "too site-specific" for core.

A few modules from ansible-provisioning have moved back to core since.

Yes we have asked for submissions of a few of these but some did not
fit or were lacking in docs long long ago.

This is not a current issue for this particular module.

-- Michael

updated my draft inventory plugin, had to adjust for a couple of vmware product versions i have as things seem to change quite a bit.

https://github.com/bcoca/ansible/tree/vsphere_inventory

its still work in progress, please test, break, vilify and request features.