Introduction

all:
hosts:
localhost:
ansible_connection: local


Step 2: Define Credentials File

Once your Ansible control node is configured, deploying a virtual machine on Nutanix AHV is just a few lines of YAML away. This article walks through an enterprise-ready playbook to launch AHV VMs using the Nutanix Ansible collection. We’ll cover options for CPU, memory, networks, and storage, and how to make the playbook reusable.


Diagram: VM Deployment Workflow


Step 1: Define Inventory

Use inventory.yml as in Part 1:

Nutanix Repository on GitHub

nutanix_pc_hostname: prism.example.com
nutanix_pc_port: 9440
nutanix_username: admin
nutanix_password: S3cure!
validate_certs: false


Step 3: Create Your VM Deployment Playbook

External Documentation:

Similar Posts