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 older modules have some problems with newer versions of vSphere.

Get Learn Ansible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.