nutanix / nutanix.ansible

Official Nutanix Ansible collections
GNU General Public License v3.0
64 stars 36 forks source link

[Imprv] add functionality to allow VM unique names to module ntnx_vms #398

Open freymanP opened 11 months ago

freymanP commented 11 months ago

Describe the request Customers would like to be prevented from creating a VM if same VM name already exists. This was discussed on a separate thread: https://github.com/nutanix/nutanix.ansible/issues/284

Current behavior VMs can have duplicate names as this is allowed by the underlying infrastructure and idempotency is achieved via vm_uuid. Customers have discussed a few workarounds , however, these are more time consuming and add unwanted overhead.

Expected behavior Have a simple mechanism within the ntnx_vms module to prevent VM creation when VM name already exists (allow only vm unique names)