diff --git a/roles/sap_ha_pacemaker_cluster/tasks/main.yml b/roles/sap_ha_pacemaker_cluster/tasks/main.yml index 71139b5d5..efcb6aed0 100644 --- a/roles/sap_ha_pacemaker_cluster/tasks/main.yml +++ b/roles/sap_ha_pacemaker_cluster/tasks/main.yml @@ -172,7 +172,7 @@ - name: "SAP HA Install Pacemaker - Check resource defaults" ansible.builtin.command: cmd: | - pcs resource defaults config + {{ __sap_ha_pacemaker_cluster_command.resource_defaults_show }} register: __sap_ha_pacemaker_cluster_check_resource_defaults run_once: true changed_when: false @@ -185,7 +185,7 @@ - __sap_ha_pacemaker_cluster_resource_defaults | length > 0 ansible.builtin.command: cmd: | - pcs resource defaults update {{ item.key }}={{ item.value }} + {{ __sap_ha_pacemaker_cluster_command.resource_defaults_update }} {{ item.key }}={{ item.value }} loop: "{{ __sap_ha_pacemaker_cluster_resource_defaults | dict2items }}" loop_control: label: "{{ item.key }}={{ item.value }}" diff --git a/roles/sap_ha_pacemaker_cluster/vars/redhat.yml b/roles/sap_ha_pacemaker_cluster/vars/redhat.yml index 72ed6ca32..e8bcccc3c 100644 --- a/roles/sap_ha_pacemaker_cluster/vars/redhat.yml +++ b/roles/sap_ha_pacemaker_cluster/vars/redhat.yml @@ -17,3 +17,5 @@ __sap_ha_pacemaker_cluster_connector_config_lines: __sap_ha_pacemaker_cluster_command: resource_stop: "pcs resource disable" resource_start: "pcs resource enable" + resource_defaults_show: "pcs resource defaults config" + resource_defaults_update: "pcs resource defaults update" diff --git a/roles/sap_ha_pacemaker_cluster/vars/suse.yml b/roles/sap_ha_pacemaker_cluster/vars/suse.yml index 6b54f8c59..33314e950 100644 --- a/roles/sap_ha_pacemaker_cluster/vars/suse.yml +++ b/roles/sap_ha_pacemaker_cluster/vars/suse.yml @@ -11,3 +11,5 @@ __sap_ha_pacemaker_cluster_connector_config_lines: __sap_ha_pacemaker_cluster_command: resource_stop: "crm resource stop" resource_start: "crm resource start" + resource_defaults_show: "crm configure show type:rsc_defaults" + resource_defaults_update: "crm configure rsc_defaults"