VMware modules

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]
vm0
vm1
vm2

[esxi_hostname]
esxihost1 esxihost1.lab.edu
esxihost2 esxihost2.lab.edu
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.239.195