# Developing the vmware inventory script

**URL:** <https://forum.ansible.com/t/developing-the-vmware-inventory-script/17501>\
**Category:** Ansible Project\
**Tags:** vmware, aws\
**Created:** [February 11, 2015, 3:24pm UTC](https://forum.ansible.com/t/developing-the-vmware-inventory-script/17501 "2015-02-11T15:24:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Phillips1](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@Mark\_Phillips1](https://forum.ansible.com/u/Mark_Phillips1)\
**Post date:** [February 11, 2015, 3:24pm UTC](https://forum.ansible.com/t/developing-the-vmware-inventory-script/17501/1 "2015-02-11T15:24:39Z")

</div>

Folks,

I was wondering if anybody has done any work on the vmware.py[1] dynamic inventory script? I’d like to push it on a bit, with a couple of things:

a) Get it using the Python pysphere module (to bring it inline with vsphere\_guest - please leave “pysphere vs pyvmomi” for now, that’s a whole other discussion :))  
b) Some sort of filtering like the AWS ec2.py inventory script

If you’ve already started work on anything like these couple of points would you get in touch please?

Many thanks!

–Mark

[1] [https://github.com/ansible/ansible/blob/devel/plugins/inventory/vmware.py](https://github.com/ansible/ansible/blob/devel/plugins/inventory/vmware.py)

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 11, 2015, 3:25pm UTC](https://forum.ansible.com/t/developing-the-vmware-inventory-script/17501/2 "2015-02-11T15:25:43Z")

</div>

I just merged changes from tower team into main ansible repo, i  
believe it adds some more filtering

---

<div class="post-metadata">

**Author:** ![Chris\_Church1](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@Chris\_Church1](https://forum.ansible.com/u/Chris_Church1)\
**Post date:** [February 11, 2015, 3:29pm UTC](https://forum.ansible.com/t/developing-the-vmware-inventory-script/17501/3 "2015-02-11T15:29:42Z")

</div>

It's still using psphere, but adds some default groups and facts that could  
be used with group\_by to create additional groups. There's not (yet) any  
filtering equivalent to instance\_filters in ec2.py.

---

<div class="post-metadata">

**Author:** ![Mark\_Phillips1](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@Mark\_Phillips1](https://forum.ansible.com/u/Mark_Phillips1)\
**Post date:** [February 11, 2015, 3:32pm UTC](https://forum.ansible.com/t/developing-the-vmware-inventory-script/17501/4 "2015-02-11T15:32:21Z")

</div>

How fast things move 🙂 Brian and I were only discussing this yesterday…

Thanks Chris. Is this the default grouping stuff that’s already visible in Tower 2.1?

I’d really like to get some ‘choice’ filtering things too, like ec2.py. So my invitation still stands.
