Skip to content
Snippets Groups Projects

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

Merged Andreas Hamacher requested to merge bugfix into master
1 file
+ 9
2
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading