aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/mellanox/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'fdio.infra.ansible/roles/mellanox/tasks')
-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