ansible-playbook esxi Create a New VIrtual Machine

前提條件

安裝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
 
annotation 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章