Skip to content

Commit 5afffb4

Browse files
committed
Refactor Ansible tasks for RHEL clustering to improve readability and ensure compatibility with Pacemaker version checks
1 parent 9d76316 commit 5afffb4

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

deploy/ansible/roles-os/1.17-generic-pacemaker/tasks/1.17.2.0-cluster-RedHat.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,12 @@
490490
- "{{ secondary_instance_name }}"
491491

492492
- name: "1.17 Generic Pacemaker - Configure the resources in Pacemaker"
493-
ansible.builtin.command: pcs resource create health-azure-events ocf:heartbeat:azure-events-az meta failure-timeout=120s op monitor interval=10s timeout=240s op start timeout=10s start-delay=90s
493+
ansible.builtin.shell: |
494+
pcs resource create health-azure-events \
495+
ocf:heartbeat:azure-events-az \
496+
meta failure-timeout=120s \
497+
op monitor interval=10s timeout=240s \
498+
op start timeout=10s start-delay=90s
494499
495500
- name: "1.17 Generic Pacemaker - Ensure clone resource azure-events is configured"
496501
ansible.builtin.command: pcs resource clone health-azure-events allow-unhealthy-nodes=true

deploy/ansible/roles-sap/5.5-hanadb-pacemaker/tasks/5.5.4.1-cluster-RedHat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
block:
8989
- name: "5.5.4.1 HANA Cluster configuration - Ensure the SAP HANA resource is created on RHEL 8, 9, 10"
9090
when:
91-
- is_pcmk_ver_gt_204
91+
- is_pcmk_ver_gt_204 | default(false)
9292
- ansible_distribution_major_version is version('10', '<')
9393
ansible.builtin.shell: >
9494
pcs resource create SAPHana_{{ db_sid | upper }}_{{ db_instance_number }} SAPHana

0 commit comments

Comments
 (0)