The bulk creation of Virtual Machines (VMs) on the Nutanix AHV Platform may be implemented via automation by using Nutanix’ Prism Central REST API. As there were no ansible modules available for provisioning virtual machines on Nutanix, you may use the ansible builtin uri module along with the REST API to automate VM creation.
I’ve created an ansible role called cybergavin.nutanix_vm_create to enable users to accept a CSV containing specifications of VMs (e.g. name, IP address) and provision those VMs. This role was influenced by another role mbach04.nutanix_vm_provisioner.
Refer the “Read Me” for the ansible role or my GitHub Repo for the role for more details.