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
This commit is contained in:
Ludovic Poujol 2021-07-06 16:09:17 +02:00
parent c77e0d73f8
commit 49cb5adf92

View file

@ -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"