VMWARE rest colleciton

Hi all after recently changing over from AWX to AAP and changing from the community.VMware collection to VMware.rest collection.
I am running into some issues when deploying I am using the module,

VMware.vmware_rest.content_library_item_info:
deploying the VM from a template in the content library,
I am able to deploy the VM from the template without any problems,
using the below playbook.
but the issue I have is the newly deployed VM keeps the name of the,
name of the template the VM was created from and does not change the name at guest level,
just changes on the label of the VM.

As you pointed out yourself, this seems to be a question related to the usage of https://github.com/ansible-collections/vmware.vmware_rest, so that would be the logical place to ask first, I would assume.
This list is more for general ansible questions rather than specific 3rd party content.

https://github.com/ansible-collections/vmware.vmware_rest/blob/main/docs/vmware.vmware_rest.vcenter_vmtemplate_libraryitems_module.rst

  • Creates a library item in content library from a virtual machine. This {@term operation} creates a library item in content library whose content is a virtual machine template created from the source virtual machine, using the supplied create specification. The virtual machine template is stored in a newly created library item.

According to the documentation the vmware.vmware_rest.vcenter_vmtemplate_libraryitems module creates a library item in the content library. It does NOT create a new VM.

If you want to create a new VM I think you need to use the vmware.vmware_rest.vcenter_vm module with state ‘clone’ and source of the library item you want to use to create the new VM.

Walter