Re: [ansible-project] Re: ansible add esxi host to datacenter or folder

2020-04-13 Thread Tony Wong
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:

Re: [ansible-project] Re: ansible add esxi host to datacenter or folder

2020-04-13 Thread Jorge Rúa
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

Re: [ansible-project] Re: ansible add esxi host to datacenter or folder

2020-04-13 Thread Tony Wong
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

Re: [ansible-project] Re: ansible add esxi host to datacenter or folder

2020-04-13 Thread Tony Wong
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

Re: [ansible-project] Re: ansible add esxi host to datacenter or folder

2020-04-13 Thread Jorge Rúa
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

[ansible-project] Re: ansible add esxi host to datacenter or folder

2020-04-13 Thread David Foley
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: