This ansible role enables the creation of one or more VMs on a single Nutanix cluster.
Although this role uses the v1 API on Prism Element to mount and enable Nutanix Guest Tools on the created VM(s), the NGT status will be displayed as "Latest" only after the VM(s) reboot or the "Nutanix Guest Agent" service on the VM(s) is restarted.
Create a vars/main.yml with the required variables (above) and a files/vm.tsv before using the following playbook.
---
- name: Create VMs on Nutanix AHV
hosts: localhost
gather_facts: false
tasks:
- name: Include variables
include_vars: dir=vars
- name: Use ansible role cg_nutanix_vm_create
include_role:
name: cg_nutanix_vm_create
GPLv3.0
Cybergavin - https://cybergav.in - https://github.com/cybergav.in
Influenced/Inspired by the Ansible role mbach04.nutanix_vm_provisioner at https://github.com/mbach04/nutanix_vm_provisioner. The ansible role mbach04.nutanix_vm_provisioner is distributed using the MIT License with Copyright (c) 2018 Red Hat.