aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/intel/tasks/i40e.yaml
diff options
context:
space:
mode:
authorJuraj Linkeš <juraj.linkes@pantheon.tech>2021-07-26 15:29:30 +0200
committerPeter Mikus <pmikus@cisco.com>2021-07-26 13:57:23 +0000
commit67d2e96f19c4f12f1e7bd27052f1bc177f060b71 (patch)
tree64c24cdd5222eb644f7a133184bffac709df225b /fdio.infra.ansible/roles/intel/tasks/i40e.yaml
parentd71805fb41303c4c4b5c709fe18004a0b946a033 (diff)
Ansible: fix multiple shell commands
Ansible passes "&&" as arguments to the command being called, which prevents us from using it for calling multiple commands in one ansible task. Fix by replacing this with "with_items". Change-Id: Ie07a1b1969bda9569cf82ef0741ec52260e2c736 Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
Diffstat (limited to 'fdio.infra.ansible/roles/intel/tasks/i40e.yaml')
-rw-r--r--fdio.infra.ansible/roles/intel/tasks/i40e.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/fdio.infra.ansible/roles/intel/tasks/i40e.yaml b/fdio.infra.ansible/roles/intel/tasks/i40e.yaml
index 8c34d096aa..fe8ae7c5ea 100644
--- a/fdio.infra.ansible/roles/intel/tasks/i40e.yaml
+++ b/fdio.infra.ansible/roles/intel/tasks/i40e.yaml
@@ -20,9 +20,13 @@
- intel-inst
- name: Inst - i40e Network Adapter Driver
- command: "make install && modprobe -r i40e && modprobe i40e"
+ command: "{{ item }}"
args:
chdir: "{{ intel_i40e_driver_dir }}/i40e-{{ intel_i40e_version }}/src"
+ with_items:
+ - "make install"
+ - "modprobe -r i40e"
+ - "modprobe i40e"
failed_when: no
when:
- intel_driver_extracted