Skip to content

Commit

Permalink
sap_ha_pacemaker_cluster: Fix ansible-lint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
ja9fuchs committed Nov 27, 2024
1 parent f84c797 commit 08aee4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# See IBM Db2 documentation 'HADR and network address translation (NAT) support' - https://www.ibm.com/docs/en/db2/11.5?topic=support-hadr-nat
# These are the HADR Ports used for internode communication, and are unrelated to Health Check probe port from a Load Balancer
- name: SAP HA AnyDB - IBM Db2 HADR - Append IBM Db2 HA Ports to /etc/services
ansible.builtin.lineinfile:
ansible.builtin.lineinfile: # noqa no-tabs
path: /etc/services
line: "{{ item }}"
state: present
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
{% set idname = __sap_ha_pacemaker_cluster_nwas_sapmnt_filesystem_resource_name %}
{% elif '/usr/sap/trans' in __mountpoint -%}
{% set idname = __sap_ha_pacemaker_cluster_nwas_transports_filesystem_resource_name %}
{% elif '/usr/sap/' + (__sap_ha_pacemaker_cluster_nwas_sid ) + '/SYS' in __mountpoint -%}
{% elif '/usr/sap/' + (__sap_ha_pacemaker_cluster_nwas_sid) + '/SYS' in __mountpoint -%}
{% set idname = __sap_ha_pacemaker_cluster_nwas_sys_filesystem_resource_name %}
{% endif %}
{{ idname }}
Expand Down Expand Up @@ -162,15 +162,15 @@
{{ __sap_ha_pacemaker_cluster_nwas_sapmnt_filesystem_resource_clone_name }}
{%- elif '/usr/sap/trans' in __mountpoint -%}
{{ __sap_ha_pacemaker_cluster_nwas_transports_filesystem_resource_clone_name }}
{%- elif '/usr/sap/' + (__sap_ha_pacemaker_cluster_nwas_sid ) + '/SYS' in __mountpoint -%}
{%- elif '/usr/sap/' + (__sap_ha_pacemaker_cluster_nwas_sid) + '/SYS' in __mountpoint -%}
{{ __sap_ha_pacemaker_cluster_nwas_sys_filesystem_resource_clone_name }}
{%- endif %}
resource_id: |-
{%- if '/sapmnt' in __mountpoint -%}
{{ __sap_ha_pacemaker_cluster_nwas_sapmnt_filesystem_resource_name }}
{%- elif '/usr/sap/trans' in __mountpoint -%}
{{ __sap_ha_pacemaker_cluster_nwas_transports_filesystem_resource_name }}
{%- elif '/usr/sap/' + (__sap_ha_pacemaker_cluster_nwas_sid ) + '/SYS' in __mountpoint -%}
{%- elif '/usr/sap/' + (__sap_ha_pacemaker_cluster_nwas_sid) + '/SYS' in __mountpoint -%}
{{ __sap_ha_pacemaker_cluster_nwas_sys_filesystem_resource_name }}
{%- endif %}
meta_attrs:
Expand Down

0 comments on commit 08aee4e

Please sign in to comment.