feat: hypervisor_backup_config role and playbook

This commit is contained in:
Semaphore
2026-03-13 15:02:13 -07:00
parent d0e206bdd3
commit 161c40dbbb
3 changed files with 230 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
---
# =============================================================================
# hypervisor_backup_config.yml
# =============================================================================
# Backs up hypervisor node configs to one or more destinations.
# Runs against all nodes in proxmox_cluster or xcpng_pool groups.
#
# Destinations configured via pve_config_backup_destinations in
# hypervisor_hosts.yml or group_vars.
#
# Usage:
# ansible-playbook playbooks/hypervisor_backup_config.yml \
# -i inventories/client_local_eng/hypervisor_hosts.yml
#
# Override destination on the fly:
# ansible-playbook playbooks/hypervisor_backup_config.yml \
# -i inventories/client_local_eng/hypervisor_hosts.yml \
# -e '{"pve_config_backup_destinations":[{"type":"local"}]}'
# =============================================================================
- name: Backup hypervisor node configs
hosts: proxmox_cluster:xcpng_pool
gather_facts: true
serial: 1
roles:
- hypervisor_backup_config