Looks like in 2.5 you specify 'num_cpu_cores_per_socket' in the
vmware_guest 'hardware' dictionary.
- name: Create VM
vmware_guest:
hostname: somevmwareesxhost
... other vmware_guest config ...
hardware:
num_cpus: 4
num_cpu_cores_per_socket: 8
... other hardware config ...
... other vmware_guest config ...
On Thursday, March 22, 2018 at 3:05:47 PM UTC-5, talha jilal wrote:
>
> Hello,
>
> I am deploying vms with vmware_guest module, and I need to edit "number of
> cores per socket" what statement should I use ?
>
> I tried the following statement but it always give me error.
>
> customvalues:
> - key: cpuid.coresPerSocket
> value: 2
>
> Error :
>
>
>
>
> fatal: [kuber-n-03 -> localhost]: FAILED! => {"changed": false, "msg":
> "Failed t
> o set custom value for
> key='numvcpus' and value='two'. Error was: (vmodl.fault.I
>
> nvalidArgument) {\n dynamicType = <unset>,\n
> dynamicProperty = (vmodl.Dynami
> cProperty)
> [],\n msg = 'A specified parameter was not correct. \\nkey',\n fa
>
> ultCause = <unset>,\n faultMessage =
> (vmodl.LocalizableMessage) [],\n invali
>
> dProperty = u'key'\n}"}
>
>
>
> When I set
>
> customvalues:
> - key: cpuid.coresPerSocket
> value: two
>
>
> Error:
> > localhost]: FAILED! => {"changed": false, "msg": "Failed t
>
> o set custom value for key='numvcpus' and value='two'.
> Error was: (vmodl.fault.I
> nvalidArgument)
> {\n dynamicType = <unset>,\n dynamicProperty = (vmodl.Dynami
>
> cProperty) [],\n msg = 'A specified parameter was
> not correct. \\nkey',\n fa
> ultCause =
> <unset>,\n faultMessage = (vmodl.LocalizableMessage) [],\n invali
>
> dProperty = u'key'\n}"
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/c31bb4c2-cce8-4765-9195-ab2e7c774d10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.