diff --git a/playbooks/xcp_pool_upgrade.yml b/playbooks/xcp_pool_upgrade.yml new file mode 100644 index 0000000..f5a3328 --- /dev/null +++ b/playbooks/xcp_pool_upgrade.yml @@ -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 \ No newline at end of file