Files
ansible-msp-automations/playbooks/site_maintenance.yml
Semaphore ca0f11b1c9 Fix snapshot role — XO REST API, fix playbook host targeting
- roles/snapshot/tasks/main.yml: replace xe CLI with XO REST API
  - POST /rest/v0/vms/<uuid>/actions/snapshot?sync=true
  - stores returned snapshot UUID as snapshot_id
  - baremetal: skips gracefully with warning
- playbooks/snapshot_pre.yml: target linux_hosts only (was all)
- playbooks/linux_patch.yml: remove snapshot + report roles (snapshot is separate step)
- playbooks/site_maintenance.yml: remove bootstrap play (handled per-playbook),
  remove windows_patch import (WinRM not implemented)
2026-03-12 21:44:20 -07:00

17 lines
701 B
YAML

---
# =============================================================================
# playbooks/site_maintenance.yml
# Full maintenance sequence:
# 1. Snapshot guest VMs (linux_hosts via XO/Proxmox API)
# 2. Preflight safety checks (linux_hosts + xcpng_hosts)
# 3. Linux patching (linux_hosts)
#
# Windows hosts are excluded — WinRM patching not yet implemented.
# XCP-NG pool updates are a separate template (xcpng_pool_update.yml)
# and should be run before this playbook during a maintenance window.
# =============================================================================
- import_playbook: snapshot_pre.yml
- import_playbook: site_preflight.yml
- import_playbook: linux_patch.yml