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

force mellanox role to fail if no hardware is present. I want this to be...

force mellanox role to fail if no hardware is present. I want this to be handled higher up where it is visible


Former-commit-id: 752ea7cd
parent a09cb94d
No related branches found
No related tags found
No related merge requests found
--- ---
- 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"
- include_vars: mellanoxVars.yml - include_vars: mellanoxVars.yml
- name: yum install dependencies - name: yum install dependencies
...@@ -39,8 +44,8 @@ ...@@ -39,8 +44,8 @@
changed_when: False changed_when: False
- name: set install due to drivers not installed - name: set install due to drivers not installed
set_fact: set_fact:
install_now: true install_now: true
reboot_now: true reboot_now: true
when: drivers_installed.failed when: drivers_installed.failed
...@@ -60,7 +65,7 @@ ...@@ -60,7 +65,7 @@
debug: var=install_now debug: var=install_now
- name: copy driver source - name: copy driver source
unarchive: copy=no src="http://consistency0/src/{{ MELLANOX_DRIVER_SRC }}.tgz" dest=/tmp unarchive: copy=no src="http://consistency0/src/{{ MELLANOX_DRIVER_SRC }}.tgz" dest=/tmp
become: true become: true
become_user: root become_user: root
when: install_now when: install_now
......
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