aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/mellanox
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2022-06-22 11:01:17 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2022-06-22 11:03:07 +0000
commit99a0ec18cb9117e9c22b4416c97d603215e3fa8b (patch)
tree722f80cd48d4d85d4a9ed107275a4eb23223df75 /fdio.infra.ansible/roles/mellanox
parent0fa376d390b3de02c75e4611c1e9d134e49b5b9d (diff)
feat(ansible): Add ICX
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I3a62dc7048102381598b3e0dfc16f82fad834d7b
Diffstat (limited to 'fdio.infra.ansible/roles/mellanox')
-rw-r--r--fdio.infra.ansible/roles/mellanox/tasks/main.yaml3
1 files changed, 2 insertions, 1 deletions
diff --git a/fdio.infra.ansible/roles/mellanox/tasks/main.yaml b/fdio.infra.ansible/roles/mellanox/tasks/main.yaml
index 75964304ca..81fefc8ae3 100644
--- a/fdio.infra.ansible/roles/mellanox/tasks/main.yaml
+++ b/fdio.infra.ansible/roles/mellanox/tasks/main.yaml
@@ -29,7 +29,8 @@
set_fact:
ofed: "{{ mellanox_cx5_compatibility_matrix[mellanox_cx5_matrix]['ofed'] }}"
when: >
- mellanox_pcis is defined
+ mellanox_pcis.stdout_lines | length > 0 and
+ mellanox_cx5_matrix is defined
tags:
- mellanox-inst-drivers