Add playbooks/xcp_pool_upgrade.yml
This commit is contained in:
17
playbooks/xcp_pool_upgrade.yml
Normal file
17
playbooks/xcp_pool_upgrade.yml
Normal 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
|
||||
Reference in New Issue
Block a user