main.yml 329 B

12345678910
  1. ---
  2. - name: Test if cluster is already configured
  3. command: pcs status
  4. register: pcs_status
  5. changed_when: false
  6. failed_when: false
  7. when: openshift.master.cluster_method == "pacemaker"
  8. - include: configure.yml
  9. when: "pcs_status | failed and 'Error: cluster is not currently running on this node' in pcs_status.stderr"