September 2018
Beginner to intermediate
214 pages
5h 53m
English
Ansible offers a list of modules to enable VMware infrastructure automated management.
We need to have the pyVmomi Python SDK installed:
pip install pyvmomi
These modules are built to manage the VMware ESX, ESXi, and vCenter server. In this section, we will describe some of the most useful modules that are involved in managing the VMware infrastructure.
An inventory file is required to host some of the data centre information:
---[vms:vars]datacenter: "vcenter.lab.edu"vcenter_hostname: "vcenter.lab.edu"vcenter_username: "admin"vcenter_password: "@dm1np@55w0rd" [vms]vm0vm1vm2[esxi_hostname]esxihost1 esxihost1.lab.eduesxihost2 esxihost2.lab.edu
Read now
Unlock full access