From 49cb5adf921603dbf4081d221c49670bc3e1d8b4 Mon Sep 17 00:00:00 2001 From: Ludovic Poujol Date: Tue, 6 Jul 2021 16:09:17 +0200 Subject: [PATCH] evolinux-base: Fix hw card detect Run the shell command as bash instead of sh; otherwise it will fail because of the set -o pipefail --- evolinux-base/tasks/hardware.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evolinux-base/tasks/hardware.yml b/evolinux-base/tasks/hardware.yml index 34ed46b3..3f5d4232 100644 --- a/evolinux-base/tasks/hardware.yml +++ b/evolinux-base/tasks/hardware.yml @@ -29,7 +29,9 @@ # HP gen <10: Hewlett-Packard Company Smart Array # HP gen >=10: Adaptec Smart Storage PQI - name: Detect if RAID is installed - shell: "set -o pipefail && lspci -q | grep -e 'RAID bus controller' -e 'Serial Attached SCSI controller'" + shell: + cmd: "set -o pipefail && lspci -q | grep -e 'RAID bus controller' -e 'Serial Attached SCSI controller'" + executable: /bin/bash check_mode: no register: raidmodel changed_when: "'FAILED' in raidmodel.stdout"