diff --git a/roles/mellanox_drivers/tasks/main.yml b/roles/mellanox_drivers/tasks/main.yml index c54e424e388f7dd539873fdcc5d1197061b3d68a..e74f48aefeda13af239a226a8c4d38c99352dc54 100644 --- a/roles/mellanox_drivers/tasks/main.yml +++ b/roles/mellanox_drivers/tasks/main.yml @@ -217,13 +217,21 @@ become_user: root when: install_now and buildKMOD!=True and ansible_os_family == "Debian" -- name: install drivers Redhat +- name: install drivers Redhat VM shell: ./mlnxofedinstall -q --skip-repo --without-fw-update args: chdir: "/tmp/{{ MELLANOX_DRIVER_SRC }}" become: true become_user: root - when: install_now and buildKMOD!=True and ansible_os_family == "RedHat" + when: install_now and buildKMOD!=True and ansible_os_family == "RedHat" and "OpenStack Nova" in ansible_product_name + +- name: install drivers Redhat not VM firmware + shell: ./mlnxofedinstall -q --skip-repo + args: + chdir: "/tmp/{{ MELLANOX_DRIVER_SRC }}" + become: true + become_user: root + when: install_now and buildKMOD!=True and ansible_os_family == "RedHat" and "OpenStack Nova" not in ansible_product_name - name: build and install drivers Redhat shell: ./mlnxofedinstall -q --skip-repo --without-fw-update --add-kernel-support --hpc --kmp --all