From 67d2e96f19c4f12f1e7bd27052f1bc177f060b71 Mon Sep 17 00:00:00 2001 From: Juraj Linkeš Date: Mon, 26 Jul 2021 15:29:30 +0200 Subject: Ansible: fix multiple shell commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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š --- fdio.infra.ansible/roles/intel/tasks/iavf.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'fdio.infra.ansible/roles/intel/tasks/iavf.yaml') diff --git a/fdio.infra.ansible/roles/intel/tasks/iavf.yaml b/fdio.infra.ansible/roles/intel/tasks/iavf.yaml index 893c608f14..9ec6781d59 100644 --- a/fdio.infra.ansible/roles/intel/tasks/iavf.yaml +++ b/fdio.infra.ansible/roles/intel/tasks/iavf.yaml @@ -20,9 +20,13 @@ - intel-inst - name: Inst - iavf Network Adapter Driver - command: "make install && modprobe -r iavf && modprobe iavf" + command: "{{ item }}" args: chdir: "{{ intel_iavf_driver_dir }}/iavf-{{ intel_iavf_version }}/src" + with_items: + - "make install" + - "modprobe -r iavf" + - "modprobe iavf" failed_when: no when: - intel_driver_extracted -- cgit 1.2.3-korg