aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/mellanox
diff options
context:
space:
mode:
Diffstat (limited to 'fdio.infra.ansible/roles/mellanox')
-rw-r--r--fdio.infra.ansible/roles/mellanox/defaults/main.yaml6
-rw-r--r--fdio.infra.ansible/roles/mellanox/tasks/main.yaml2
-rw-r--r--fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml12
3 files changed, 10 insertions, 10 deletions
diff --git a/fdio.infra.ansible/roles/mellanox/defaults/main.yaml b/fdio.infra.ansible/roles/mellanox/defaults/main.yaml
index a12a613f74..b071f030ae 100644
--- a/fdio.infra.ansible/roles/mellanox/defaults/main.yaml
+++ b/fdio.infra.ansible/roles/mellanox/defaults/main.yaml
@@ -25,6 +25,6 @@ mellanox_cx5_compatibility_matrix:
dpdk21.02:
# https://doc.dpdk.org/guides/rel_notes/release_21_02.html
ofed: "5.3-1.0.5.0"
- dpdk22.03:
- # https://doc.dpdk.org/guides/rel_notes/release_22_03.html
- ofed: "5.5-1.0.3.2"
+ dpdk22.07:
+ # https://doc.dpdk.org/guides/rel_notes/release_22_07.html
+ ofed: "5.6-1.0.3.3"
diff --git a/fdio.infra.ansible/roles/mellanox/tasks/main.yaml b/fdio.infra.ansible/roles/mellanox/tasks/main.yaml
index 81fefc8ae3..7f47981378 100644
--- a/fdio.infra.ansible/roles/mellanox/tasks/main.yaml
+++ b/fdio.infra.ansible/roles/mellanox/tasks/main.yaml
@@ -13,7 +13,7 @@
- name: Inst - Prerequisites
package:
name: "{{ packages | flatten(levels=1) }}"
- state: latest
+ state: "latest"
tags:
- mellanox-inst-drivers
diff --git a/fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml b/fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml
index 2ad40b0afb..732397d269 100644
--- a/fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml
+++ b/fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml
@@ -2,7 +2,7 @@
# file: roles/mellanox/tasks/ofed.yaml
- name: Inst - Get OFED
- get_url:
+ ansible.builtin.get_url:
url: "{{ mellanox_download_url }}/MLNX_OFED-{{ ofed }}/MLNX_OFED_LINUX-{{ ofed }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}.tgz"
dest: "{{ mellanox_extract_dir }}/MLNX_OFED_LINUX-{{ ofed }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}.tgz"
mode: "0644"
@@ -11,7 +11,7 @@
- mellanox-inst-drivers
- name: Inst - Extract OFED
- unarchive:
+ ansible.builtin.unarchive:
remote_src: true
src: "{{ mellanox_extract_dir }}/MLNX_OFED_LINUX-{{ ofed }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}.tgz"
dest: "{{ mellanox_extract_dir }}/"
@@ -21,7 +21,7 @@
- mellanox-inst-drivers
- name: Inst - OFED
- command: "./mlnxofedinstall --with-mft --dpdk --force --upstream-libs --without-fw-update"
+ ansible.builtin.command: "./mlnxofedinstall --with-mft --dpdk --force --upstream-libs --without-fw-update"
args:
chdir: "{{ mellanox_extract_dir }}/MLNX_OFED_LINUX-{{ ofed }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}"
when: mellanox_firmware_extracted
@@ -29,14 +29,14 @@
- mellanox-inst-drivers
- name: Inst - Switch Infiniband to Ethernet
- command: "mlxconfig --yes --dev {{ item }} set LINK_TYPE_P1=2 LINK_TYPE_P2=2"
+ ansible.builtin.command: "mlxconfig --yes --dev {{ item }} set LINK_TYPE_P1=2 LINK_TYPE_P2=2"
with_items: "{{ mellanox_pcis.stdout_lines }}"
tags:
- mellanox-inst-drivers
- name: FIX qemu-system removal
- package:
+ ansible.builtin.package:
name: "qemu-system"
- state: latest
+ state: "latest"
tags:
- mellanox-inst-drivers