前提條件
安裝ansible
yum install ansible vim wget net-tools git -y
需要滿足以下要求
- python >= 2.6
- PyVmomi
需安裝pyVmomi,它是用於VMware vSphere API的Python SDK,允許您管理ESX、ESXi和vCenter。
pip install pyvmomi
創建目錄
mkdir -p /etc/ansible/roles/vmware
參數設置參考
Parameter | Choices/Defaults | Comments |
---|