Split upgrade stage and add dpkg cleanup

Avoid problems if one or more nodes are upgrading libvirt/QEMU and live
migrations fail.
This commit is contained in:
Joshua Boniface 2023-09-01 15:42:29 -04:00
parent 7a0c596281
commit 2c63500011
1 changed files with 7 additions and 0 deletions

View File

@ -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