Skip to content

Commit

Permalink
Merge pull request sap-linuxlab#769 from ja9fuchs/ha-fix-nw-restart
Browse files Browse the repository at this point in the history
sap_ha_pacemaker_cluster: fix pcs resource restart
  • Loading branch information
berndfinger authored Jun 21, 2024
2 parents 0387edf + 7467ae8 commit d58d44b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,19 @@
block:
- name: "SAP HA Pacemaker - (SAP HA Interface) Restart ASCS ERS resources"
ansible.builtin.shell: |
{{ __sap_ha_pacemaker_cluster_command.resource_restart }} {{ __rsc_ascs }} {{ __rsc_ers }}
{{ __sap_ha_pacemaker_cluster_command.resource_restart }} {{ restart_item }}
vars:
__rsc_ascs: "{{ sap_ha_pacemaker_cluster_nwas_abap_ascs_sapstartsrv_resource_name
if sap_ha_pacemaker_cluster_nwas_abap_ascs_ers_simple_mount
else sap_ha_pacemaker_cluster_nwas_abap_ascs_sapinstance_resource_name }}"
__rsc_ers: "{{ sap_ha_pacemaker_cluster_nwas_abap_ers_sapstartsrv_resource_name
if sap_ha_pacemaker_cluster_nwas_abap_ascs_ers_simple_mount
else sap_ha_pacemaker_cluster_nwas_abap_ers_sapinstance_resource_name }}"
loop:
- "{{ __rsc_ascs }}"
- "{{ __rsc_ers }}"
loop_control:
loop_var: restart_item
when:
- __sap_ha_pacemaker_cluster_register_where_ascs.rc == 0
changed_when: true
Expand Down

0 comments on commit d58d44b

Please sign in to comment.