Automating Nutanix Backup with Ansible
Table of Contents
Why I Automated Nutanix Backups with Ansible
Nutanix Backup and Snapshot Concepts
VM Snapshots (Local)
Protection Domains (Prism Element)
Protection Policies and Nutanix DR (Prism Central)
Installing the nutanix.ncp Ansible Collection
Module
Purpose
Inventory and Credentials Setup
Inventory File
Vault-Encrypted Credentials File
Taking VM Snapshots with Ansible
Playbook: Create VM Snapshot
Playbook: List Existing Snapshots
Working with Protection Domains via Prism Element API
Playbook: List Protection Domains
Playbook: Trigger a Manual Snapshot of a Protection Domain
Playbook: Add a VM to a Protection Domain
Application-Consistent Snapshots with Pre/Post Tasks
Snapshot Retention and Cleanup
Backup Verification Playbook
Scheduling Playbooks with AAP or Cron
Option 1: Cron on the Control Node
Option 2: Ansible Automation Platform Job Templates
What Works Well and What Does Not
What Works Well
What Does Not Work Well (or Needs Workarounds)
Next Steps
PreviousGitLab CI/CD Integration with Nutanix BlueprintNextUpgrading AHV Firmware with Ansible Automation Platform
Last updated