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:
parent
60092d363a
commit
2a1e76f479
|
@ -48,6 +48,13 @@
|
||||||
state: "absent"
|
state: "absent"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
|
|
||||||
|
- hosts: all
|
||||||
|
remote_user: deploy
|
||||||
|
become: yes
|
||||||
|
become_user: root
|
||||||
|
gather_facts: yes
|
||||||
|
serial: 1
|
||||||
|
tasks:
|
||||||
- name: check freshness
|
- name: check freshness
|
||||||
command: /usr/sbin/needrestart -p
|
command: /usr/sbin/needrestart -p
|
||||||
register: freshness
|
register: freshness
|
||||||
|
|
Loading…
Reference in New Issue