Add playbooks/xcp_pool_upgrade.yml

This commit is contained in:
2026-03-31 14:14:35 -07:00
parent 839cc55424
commit b48188863d

View File

@@ -0,0 +1,17 @@
---
- name: XCP-ng Rolling Pool Upgrade
hosts: xcp_pool_masters
become: false
tasks:
- name: Check for available updates on the pool
ansible.builtin.command: xe pool-apply-editions
register: update_check
- name: Execute Rolling Pool Upgrade via XO API (Recommended)
community.general.xen_orchestra_pool:
api_url: "{{ xo_host }}"
api_user: "{{ xo_user }}"
api_password: "{{ xo_password }}"
name: "{{ pool_name }}"
# XO handles the evacuation and reboot of hosts sequentially
rolling_upgrade: yes