Open Tronde opened 1 year ago
Unfortunatelly vmware.vmware_rest
modules are automatically generated. If the VMware REST API won't add support for such an attribute, we won't be adding such a feature. In future, we will be supporting SOAP version of the VMware VM module, so I would suggest to use that one, if one task is needed.
SUMMARY
The docs at [0] describe the parameter
power_on
to "Attempt to perform a {@link #powerOn} after clone."I guess this parameter only works when
state: clone
, because it doesn't work whenstate: present
. I would like to have this module support the parameter forstate: present
as well to be able to power on newly created VMs without using an additional task.ISSUE TYPE
COMPONENT NAME
vcenter_vm.py
ADDITIONAL INFORMATION
The feature would be use to create and power on the created VM in one task. So it would be ease to use a dict with multiple VMs to have them created and powered on without using the vcenter_vm_power module on each VM afterwards.
But in
_result
if found"power_state": "POWERED_OFF",
afterwards.[0] https://docs.ansible.com/ansible/latest/collections/vmware/vmware_rest/vcenter_vm_module.html#parameters
In case you need additional information to understand the use case, please, don't hesitate to ask and I try to explain it in more detail.