Skip to content

Commit 04f7d76

Browse files
Use community role for HANA installation
1 parent 7894c9d commit 04f7d76

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

ansible/playbooks/sap-hana-install.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,19 @@
2424
ansible.builtin.set_fact:
2525
hana_installed: "{{ sid_file_check.state }}"
2626

27-
- name: Execute hana install role
27+
- name: Execute hana install role (upstream)
28+
ansible.builtin.include_role:
29+
name: community.sap_install.sap_hana_install
30+
when:
31+
- hana_installed == 'absent'
32+
- enable_community_sap_roles | default(false) | string | lower == 'true'
33+
34+
- name: Execute hana install role (local)
2835
ansible.builtin.include_role:
2936
name: sap_hana_install
30-
when: hana_installed == 'absent'
37+
when:
38+
- hana_installed == 'absent'
39+
- enable_community_sap_roles | default(false) | string | lower != 'true'
3140

3241
- name: Write status file
3342
ansible.builtin.file:

requirements.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ collections:
66
version: 1.5.4
77
- name: community.general
88
version: 9.5.12
9+
- name: community.sap_install
10+
version: 1.7.1

0 commit comments

Comments
 (0)