vSphere Ansible Inventory is a fast and robust script for listing VMWare vCenter virtual machines in Ansible dynamic inventory format. This script is one of the fastest of its kind, yet features configurable caching, proving quite useful in large scale environments. Its flexibly configurable via it's configuration file (vsphere_inventory.ini).
pip install -r requirements.txt
git clone https://github.com/mikesimos/vsphere_ansible_inventory.git
vsphere-inventory.ini file.
Example usage:
$ ansible all -i vsphere_inventory.py -m ping
- pyVmomi
All package requirements are installed (with pip) during installation.
- Python >=2.7 or >= 3.3
Michael Angelos Simos