【发布时间】:2017-06-26 13:26:49
【问题描述】:
我们在 VMware 环境中广泛使用 Ansible。我在 https://docs.ansible.com/ansible/vmware_guest_module.html#options 的 Ansible 文档中找到了 customvalues 选项。
此模块中的自定义值是什么?
这是使用 VMware 标记还是其他什么?
【问题讨论】:
标签: ansible vmware vsphere vcenter
我们在 VMware 环境中广泛使用 Ansible。我在 https://docs.ansible.com/ansible/vmware_guest_module.html#options 的 Ansible 文档中找到了 customvalues 选项。
此模块中的自定义值是什么?
这是使用 VMware 标记还是其他什么?
【问题讨论】:
标签: ansible vmware vsphere vcenter
很久没有答案了。为了完整起见: Ansible的vmware_guest模块中的customvalues obejcts是指VM设置->VM选项->vSphere中的配置参数下的选项As described in VMware KB
格式为:
vmware_guest:
customvalues:
- key: "option_name"
value: "option_value"
- key: "another_option_name_if_needed"
value: "the_other_options_value"
【讨论】: