VMware部署与Ansible Windows模块使用指南
一、VMware部署相关模块及操作
1.1 多种VMware模块介绍
在VMware部署中,有多个实用的Ansible模块,以下为您详细介绍:
- vmware_vswitch模块 :用于向ESXi主机添加或移除VMware标准交换机(vSwitch)。示例代码如下:
- name: Add a vSwitch
vmware_vswitch:
hostname: "{
{ vsphere_host }}"
username: "{
{ vsphere_username }}"
password: "{
{ vsphere_password }}"
validate_certs: "no"
switch: "vswitch_name"
nics:
- "vmnic1"
- "vmnic2"
mtu: "9000"
delegate_to: "localhost"
- vmware_drs_rule_facts模块 :可收集整个集群或单个数据中心的DRS配置信息。示例如下:
- name: Find out facts about drs on all the hosts in the clus
超级会员免费看
订阅专栏 解锁全文
1875

被折叠的 条评论
为什么被折叠?



