From 2c635000110ec664dad496add794f2e0db793686 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:29 -0400 Subject: [PATCH] Split upgrade stage and add dpkg cleanup Avoid problems if one or more nodes are upgrading libvirt/QEMU and live migrations fail. --- oneshot/update-pvc-cluster.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/oneshot/update-pvc-cluster.yml b/oneshot/update-pvc-cluster.yml index ab5ca32..d8f98f7 100644 --- a/oneshot/update-pvc-cluster.yml +++ b/oneshot/update-pvc-cluster.yml @@ -48,6 +48,13 @@ state: "absent" force: "yes" +- hosts: all + remote_user: deploy + become: yes + become_user: root + gather_facts: yes + serial: 1 + tasks: - name: check freshness command: /usr/sbin/needrestart -p register: freshness