forked from evolix/ansible-roles
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:
parent
c77e0d73f8
commit
49cb5adf92
|
@ -29,7 +29,9 @@
|
||||||
# HP gen <10: Hewlett-Packard Company Smart Array
|
# HP gen <10: Hewlett-Packard Company Smart Array
|
||||||
# HP gen >=10: Adaptec Smart Storage PQI
|
# HP gen >=10: Adaptec Smart Storage PQI
|
||||||
- name: Detect if RAID is installed
|
- 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
|
check_mode: no
|
||||||
register: raidmodel
|
register: raidmodel
|
||||||
changed_when: "'FAILED' in raidmodel.stdout"
|
changed_when: "'FAILED' in raidmodel.stdout"
|
||||||
|
|
Loading…
Reference in a new issue