fix(Ansible): iavf install condition 75/34475/3
authorJuraj Linkeš <juraj.linkes@pantheon.tech>
Fri, 12 Nov 2021 10:18:05 +0000 (11:18 +0100)
committerPeter Mikus <pmikus@cisco.com>
Mon, 15 Nov 2021 08:32:25 +0000 (08:32 +0000)
The existing condition is missing parentheses and doesn't work as
expected.

Change-Id: I3c45f5764b95bc8dcfbdd8ee6e2698bfb022dfb6
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
fdio.infra.ansible/roles/intel/tasks/main.yaml

index a73e629..b70daf0 100644 (file)
@@ -73,9 +73,9 @@
 - name: Inst - Driver Intel iAVF
   import_tasks: iavf.yaml
   when: >
-    intel_700_pcis.stdout_lines | length > 0 or
-    intel_800_pcis.stdout_lines | length > 0 and
-    intel_700_matrix is defined or
-    intel_800_matrix is defined
+    (intel_700_pcis.stdout_lines | length > 0 and
+    intel_700_matrix is defined ) or
+    (intel_800_pcis.stdout_lines | length > 0 and
+    intel_800_matrix is defined)
   tags:
     - intel-inst-drivers