Skip to content

Commit cbe82ad

Browse files
committed
sap_netweaver_preconfigure, sap_hana_preconfigure: Fix ansible-lint
Signed-off-by: Bernd Finger <bfinger@redhat.com>
1 parent f9794d3 commit cbe82ad

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

roles/sap_hana_preconfigure/tasks/SLES/generic/saptune_install.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
- name: Set fact if baseproduct contains SLES without SLES_SAP
1212
ansible.builtin.set_fact:
1313
__sap_hana_preconfigure_use_saptune: false
14-
when:
15-
- '"SLES_SAP" not in __sap_hana_preconfigure_register_baseproduct.stat.lnk_target'
16-
- '"SLES" in __sap_hana_preconfigure_register_baseproduct.stat.lnk_target
17-
and ansible_facts['distribution_major_version'] | int < 16'
14+
when: >-
15+
"SLES_SAP" not in __sap_hana_preconfigure_register_baseproduct.stat.lnk_target
16+
and ("SLES" in __sap_hana_preconfigure_register_baseproduct.stat.lnk_target
17+
and ansible_facts['distribution_major_version'] | int < 16)
1818
1919
2020
- name: Block to ensure saptune is installed

roles/sap_netweaver_preconfigure/tasks/SLES/generic/saptune_install.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
- name: Set fact if baseproduct contains SLES without SLES_SAP
1212
ansible.builtin.set_fact:
1313
__sap_netweaver_preconfigure_use_saptune: false
14-
when:
15-
- '"SLES_SAP" not in __sap_netweaver_preconfigure_register_baseproduct.stat.lnk_target'
16-
- '"SLES" in __sap_netweaver_preconfigure_register_baseproduct.stat.lnk_target
17-
and ansible_facts['distribution_major_version'] | int < 16'
14+
when: >-
15+
"SLES_SAP" not in __sap_netweaver_preconfigure_register_baseproduct.stat.lnk_target
16+
and ("SLES" in __sap_netweaver_preconfigure_register_baseproduct.stat.lnk_target
17+
and ansible_facts['distribution_major_version'] | int < 16)
1818
1919
2020
- name: Block to ensure saptune is installed

0 commit comments

Comments
 (0)