Skip to content

Commit 44281ca

Browse files
committed
sap_ha_pacemaker_cluster: fix for check mode
- fixed a conditional that failed in check-mode - added tag to allow running in check-mode without executing ha_cluster
1 parent d0b503d commit 44281ca

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

roles/sap_ha_pacemaker_cluster/tasks/RedHat/pre_steps_nwas_ascs_ers.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@
2020
when:
2121
- sap_ha_pacemaker_cluster_nwas_cs_ers_simple_mount | bool
2222
- __sap_ha_pacemaker_cluster_sapstartsrv_check.stdout is defined
23+
- __sap_ha_pacemaker_cluster_sapstartsrv_check.stdout | length > 0
2324
- "(__sap_ha_pacemaker_cluster_sapstartsrv_check.stdout) is version(__sap_ha_pacemaker_cluster_nwas_simple_mount_version, '<')"

roles/sap_ha_pacemaker_cluster/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@
214214
ansible.builtin.import_role:
215215
name: "{{ sap_ha_pacemaker_cluster_system_roles_collection }}.ha_cluster"
216216
no_log: "{{ __sap_ha_pacemaker_cluster_no_log }}" # some parameters contain secrets
217+
tags: run_ha_cluster
217218

218219

219220
# Corosync post-inst

0 commit comments

Comments
 (0)