Skip to content
Snippets Groups Projects
Commit 175d0f6d authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

lspci needs a full path and its different for RHEL and Debian

parent 64b84a9a
No related branches found
No related tags found
1 merge request!426lspci needs a full path and its different for RHEL and Debian
......@@ -2,10 +2,17 @@
- name: "Force this role to fail if no Mellanox hardware is present"
#Exclude the role via tags ans ansible-playbook --skip-tags mlx
shell: "lspci | grep Mellanox"
shell: "/usr/sbin/lspci | grep Mellanox"
check_mode: yes
when: ansible_os_family == "RedHat"
- name: "Force this role to fail if no Mellanox hardware is present"
#Exclude the role via tags ans ansible-playbook --skip-tags mlx
shell: "/usr/bin/lspci | grep Mellanox"
check_mode: yes
when: ansible_os_family == "Debian"
#- include_vars: mellanoxVars.yml
- name: yum install dependencies
yum: name=perl,pciutils,gtk2,atk,cairo,gcc-gfortran,libxml2-python,tcsh,libnl,lsof,tcl,tk,kernel-devel,python-devel,createrepo,rpm-build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment