[CentOS] Possibly [OT] ansible vmware inventory plugin

Thu Nov 9 18:00:43 UTC 2017
Gordon Messmer <gordon.messmer at gmail.com>

On 11/09/2017 04:01 AM, Mark Haney wrote:
> Yeah, it's the Extras repo Ansible package.  So, my next (probably stupid)
> question, is there a way to get the vmware_inventory plugin setup on my
> system?


There are useful examples here:
http://docs.ansible.com/ansible/latest/intro_dynamic_inventory.html

Basically, download the vmware_inventory py and ini files, currently:
https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/vmware_inventory.py
https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/vmware_inventory.ini

Save them wherever you normally keep your inventory.  Mark the py file 
executable.  Customize it if necessary.  Indicate that it should be 
used, with the "-i" flag to ansible-playbook.