Idempotency for system_upgrade_prepare
Partial-Bug: #1831690 Change-Id: I9510fd00755cf33df105ef637d047d3cb87243ae
This commit is contained in:
@@ -154,10 +154,16 @@ outputs:
|
|||||||
- system_upgrade_prepare
|
- system_upgrade_prepare
|
||||||
when: step|int == 2
|
when: step|int == 2
|
||||||
block:
|
block:
|
||||||
|
- name: Check if pcs is present
|
||||||
|
stat:
|
||||||
|
path: /usr/sbin/pcs
|
||||||
|
register: pcs_stat
|
||||||
- name: Stop pacemaker cluster
|
- name: Stop pacemaker cluster
|
||||||
pacemaker_cluster: state=offline
|
pacemaker_cluster: state=offline
|
||||||
|
when: pcs_stat.stat.exists
|
||||||
- name: destroy pacemaker cluster
|
- name: destroy pacemaker cluster
|
||||||
command: /usr/sbin/pcs cluster destroy
|
command: /usr/sbin/pcs cluster destroy
|
||||||
|
when: pcs_stat.stat.exists
|
||||||
- name: upgrade step 0
|
- name: upgrade step 0
|
||||||
when: step|int == 0
|
when: step|int == 0
|
||||||
vars:
|
vars:
|
||||||
|
|||||||
Reference in New Issue
Block a user