File tree 3 files changed +28
-4
lines changed
3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ features :
3
+ - |
4
+ Updates the sriov role to correctly install MFT dependencies when on a
5
+ Debian system.
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ sriov_mft_url: https://www.mellanox.com/downloads/MFT/mft-4.23.0-104-x86_64-rpm.
7
7
8
8
sriov_mft_tarball : " {{ sriov_mft_url | urlsplit('path') | basename }}"
9
9
10
- sriov_os_pkgs :
10
+ sriov_os_pkgs_rhel :
11
11
- gcc
12
12
- rpm-build
13
13
# -E- Could not find lspci, you may need to install "pciutils" package
@@ -17,6 +17,15 @@ sriov_os_pkgs:
17
17
- kernel-devel
18
18
- make
19
19
20
+ sriov_os_pkgs_deb :
21
+ - gcc
22
+ # -E- Could not find lspci, you may need to install "pciutils" package
23
+ - pciutils
24
+ # NOTE(wszumski): Assumes running latest kernel. We could include package version with
25
+ # output of uname -r, but the packages aren't always available.
26
+ - linux-headers-generic
27
+ - make
28
+
20
29
sriov_restart_handler : reboot
21
30
22
31
sriov_numvfs : 8
Original file line number Diff line number Diff line change 1
1
---
2
- - name : Install MFT dependencies
2
+ - name : Install MFT dependencies (RHEL)
3
3
ansible.builtin.yum :
4
- name : " {{ sriov_os_pkgs }}"
4
+ name : " {{ sriov_os_pkgs_rhel }}"
5
5
become : true
6
- when : sriov_install_enabled
6
+ when :
7
+ - sriov_install_enabled
8
+ - ansible_facts.os_family == 'RedHat'
9
+
10
+ - name : Install MFT dependencies (Debian)
11
+ ansible.builtin.apt :
12
+ name : " {{ sriov_os_pkgs_deb }}"
13
+ become : true
14
+ when :
15
+ - sriov_install_enabled
16
+ - ansible_facts.os_family == 'Debian'
7
17
8
18
- name : Make working directory
9
19
ansible.builtin.file :
You can’t perform that action at this time.
0 commit comments