The VMware modules
As already mentioned, there are around 30 products in the VMware range; these cover everything from hypervisors to virtual switches, virtual storage, and several interfaces for interacting with your VMware-based hosts and virtual machines. In this section, we will cover the core modules that ship with Ansible to manage all aspects of your VMware estate.
I have tried to split them into logical groups and, for each of the groups, will give a brief explanation of the product the modules are targeting.
Requirements
The modules all have one thing in common: they all require a Python module called PyVmomi
to be installed. To install this, run the following pip
command:
$ sudo pip install PyVmomi
This module contains the VMware vSphere API Python bindings, and without it, the modules we are going to cover in this chapter will not be able to interact with your VMware installation.
While the modules in this chapter have been tested with vSphere 5.5 to 6.5, you may find that some of the...