Skip to content

Commit

Permalink
Relax gcc package version requirements (#158)
Browse files Browse the repository at this point in the history
SAP HANA needs some gcc packages. Relax the requirement for all sp in
SLES15.
  • Loading branch information
mpagot authored Jun 9, 2023
1 parent c5cb36d commit b1efdea
Showing 1 changed file with 5 additions and 23 deletions.
28 changes: 5 additions & 23 deletions ansible/playbooks/sap-hana-preconfigure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,35 +58,17 @@
retries: 3
delay: 60

- name: Ensure minimum version of GCC10 are installed on SLE 15-SP[123]
- name: Ensure minimum version of GCC10 are installed on SLE 15
community.general.zypper:
name: "{{ item }}"
state: present
oldpackage: true
loop:
- 'libgcc_s1=10.2.1+git583-1.3.4'
- 'libstdc++6=10.2.1+git583-1.3.4'
- 'libatomic1=10.2.1+git583-1.3.4'
- 'libgcc_s1>=10.2.1'
- 'libstdc++6>=10.2.1'
- 'libatomic1>=10.2.1'
when:
- ansible_facts['distribution_version'] == '15.1' or
ansible_facts['distribution_version'] == '15.2' or
ansible_facts['distribution_version'] == '15.3'
register: result
until: result is succeeded
retries: 3
delay: 60

- name: Ensure minimum version of GCC10 are installed on SLE 15-SP4
community.general.zypper:
name: "{{ item }}"
state: present
oldpackage: true
loop:
- 'libgcc_s1=11.2.1+git610-150000.1.6.6'
- 'libstdc++6=11.2.1+git610-150000.1.6.6'
- 'libatomic1=11.2.1+git610-150000.1.6.6'
when:
- ansible_facts['distribution_version'] == '15.4'
- ansible_distribution_major_version == '15'
register: result
until: result is succeeded
retries: 3
Expand Down

0 comments on commit b1efdea

Please sign in to comment.