diff --git a/deployment/pacemaker/pacemaker-baremetal-puppet.yaml b/deployment/pacemaker/pacemaker-baremetal-puppet.yaml index 3c3ec8a630..6e9c75c9f8 100644 --- a/deployment/pacemaker/pacemaker-baremetal-puppet.yaml +++ b/deployment/pacemaker/pacemaker-baremetal-puppet.yaml @@ -154,10 +154,16 @@ outputs: - system_upgrade_prepare when: step|int == 2 block: + - name: Check if pcs is present + stat: + path: /usr/sbin/pcs + register: pcs_stat - name: Stop pacemaker cluster pacemaker_cluster: state=offline + when: pcs_stat.stat.exists - name: destroy pacemaker cluster command: /usr/sbin/pcs cluster destroy + when: pcs_stat.stat.exists - name: upgrade step 0 when: step|int == 0 vars: