17 lines
575 B
YAML
17 lines
575 B
YAML
---
|
|
- 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 |