在我看来,大多数现有的 Ansible 模块都需要 vCenter。 例如guest_module具有必需参数 vcenter_hostname。 问题是 - 是否能够使用 Ansible 管理 2-3 个 vSphere 主机? 我需要创建虚拟环境(虚拟网络、 guest 虚拟机、负载平衡端点)。
我也考虑过 Hyper-v,但它没有 Ansible 模块。直接 powershell 管理被视为 Hyper-v 的最后手段。
最佳答案
是的,您可以执行免费许可证允许的操作。
the docs中有一个提示:
For standalone ESXi hosts, ha-datacenter should be used as the datacenter name
我使用vsphere_guest
,在填写以下参数的独立虚拟机管理程序方面没有任何问题:
- vsphere_guest:
vcenter_hostname: "{{ esxi_ip_or_dns }}" # ip address of hypervisor
esxi:
datacenter: ha-datacenter
hostname: "{{ esxi_hostname }}" # name shown in hypervisor console
username: "{{ esxi_username }}"
password: "{{ esxi_password }}"
但请记住,许多有用的功能在免费许可证中被阻止。例如,没有 vCenter 许可证,您无法克隆虚拟机。
关于ansible - 我可以在没有 vCenter 的情况下使用 Ansible 免费管理 vSphere 中的 guest 虚拟机吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43420285/