Skip to content

Commit 1be331f

Browse files
committed
Check major version for RL8 package installs
1 parent fd6abef commit 1be331f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ansible/roles/ofed/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ ofed_version: '24.04-0.6.6.0' # LTS version 23.10-2.1.3.1 does not support RL9.
22
ofed_download_url: https://content.mellanox.com/ofed/MLNX_OFED-{{ ofed_version }}/MLNX_OFED_LINUX-{{ ofed_version }}-{{ ofed_distro }}{{ ofed_distro_version }}-{{ ofed_arch }}.tgz
33
ofed_distro: rhel # NB: not expected to work on other distros due to installation differences
44
ofed_distro_version: "{{ ansible_distribution_version }}" # e.g. '8.9'
5+
ofed_distro_major_version: "{{ ansible_distribution_major_version }}" # e.g. '8'
56
ofed_arch: "{{ ansible_architecture }}"
67
ofed_tmp_dir: /tmp
78
ofed_update_firmware: false

ansible/roles/ofed/tasks/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
- name: Install build prerequisites
3333
dnf:
34-
name: "{{ ofed_build_packages + (ofed_build_rl8_packages if ofed_distro_version == '8.9' else []) }}"
34+
name: "{{ ofed_build_packages + (ofed_build_rl8_packages if ofed_distro_major_version == '8' else []) }}"
3535
when: "'MLNX_OFED_LINUX-' + ofed_version not in _ofed_info.stdout"
3636
# don't want to install a load of prereqs unnecessarily
3737

0 commit comments

Comments
 (0)