when i run that it gave me govc: please specify a datacenter
tony@ubuntu:~/ansible-vmware/ansible-add-esxi-host$ govc about
Name: VMware vCenter Server
Vendor: VMware, Inc.
Version: 6.7.0
Build:15976728
OS type: linux-x64
API type: VirtualCenter
API version:
Best thing you can do to understand how vCenter is organized is using govc
tool:
For example, this is my home lab:
➜ govc about
Name: VMware vCenter Server
Vendor: VMware, Inc.
Version: *6.7.0*
Build:15129973
OS type: linux-x64
API type: VirtualCenter
API
how do i specify this folder? The is a vcenter folder and I need to add it
to the HK datacenter
On Mon, Apr 13, 2020 at 12:47 PM Tony Wong wrote:
> Hi,
>
> Thanks. what would the host be under '/DC01/host/myhostfolder' ?
>
> I have a parent folder that I need to add the host into but its not
Hi,
Thanks. what would the host be under '/DC01/host/myhostfolder' ?
I have a parent folder that I need to add the host into but its not taking
it.
can i specify a vcenter folder ?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To
Hi Tony,
There are two ways of adding an esxi host to vCenter:
- In standalone mode (not part of a vCenter cluster)
- Part of a vCenter cluster
See the following examples:
In standalone mode, first you'll need a host folder to place your esxi
hosts. Bear in mind here that
Hi Tony,
Looking at the Documentation
https://docs.ansible.com/ansible/latest/modules/vmware_host_module.html
- name: Add ESXi Host to vCenter
vmware_host:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
datacenter: