Re: [ansible-devel] Why is "datacenter" a required parameter for vmware modules?

2019-08-29 Thread Kai Stian Olstad
On 28.08.2019 16:48, MKPhil wrote: > That's not a datacenter issue - you can have two VMs with the same name in > the same datacenter but VMWare does not recommend this - > https://kb.vmware.com/s/article/2108769 I would say it is. A datacenter is a namespace that makes it possible to have the

Re: [ansible-devel] Why is "datacenter" a required parameter for vmware modules?

2019-08-28 Thread MKPhil
That's not a datacenter issue - you can have two VMs with the same name in the same datacenter but VMWare does not recommend this - https://kb.vmware.com/s/article/2108769 vmware_guest_facts has a "name_match" parameter "If multiple virtual machines matching the name, use the first or last

Re: [ansible-devel] Why is "datacenter" a required parameter for vmware modules?

2019-08-27 Thread Kai Stian Olstad
On 27.08.2019 14:38, MKPhil wrote: > I ask because I've written a module, based on vmware_guest_find, that > returns the Datacenter for a given VM and VCenter, which I can then feed in > to the other "official" modules. My module uses the built-in function > "get_parent_datacenter" (defined in >

Re: [ansible-devel] Why is "datacenter" a required parameter for vmware modules?

2019-08-27 Thread MKPhil
Here's some: https://docs.ansible.com/ansible/latest/modules/vmware_guest_disk_module.html https://docs.ansible.com/ansible/latest/modules/vmware_guest_facts_module.html https://docs.ansible.com/ansible/latest/modules/vmware_guest_snapshot_module.html

Re: [ansible-devel] Why is "datacenter" a required parameter for vmware modules?

2019-08-27 Thread Christoph Wegener
On Tue, 27 Aug 2019 at 22:38, MKPhil wrote: > In many vmware_* modules, the datacenter parameter is marked as > required - but is it really needed? Can you point to any particular module that has 'datacenter' marked as a required parameter? -- You received this message because you are

[ansible-devel] Why is "datacenter" a required parameter for vmware modules?

2019-08-27 Thread MKPhil
In many vmware_* modules, the datacenter parameter is marked as required - but is it really needed? I ask because I've written a module, based on vmware_guest_find, that returns the Datacenter for a given VM and VCenter, which I can then feed in to the other "official" modules. My module uses