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

merging several installs into one per-host parameterized task

parent 42787e17
No related branches found
No related tags found
1 merge request!577merging several installs into one per-host parameterized task
......@@ -210,44 +210,37 @@
when: install_now
- name: install drivers Debian
shell: ./mlnxofedinstall -q --skip-repo --without-fw-update --hpc --dkms
args:
chdir: "/tmp/{{ MELLANOX_DRIVER_SRC }}"
become: true
become_user: root
when: install_now and buildKMOD!=True and ansible_os_family == "Debian"
set_fact:
mlnxofedinstall_args: "-q --skip-repo --without-fw-update --hpc --dkms"
when: buildKMOD!=True and ansible_os_family == "Debian"
- 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" and "OpenStack Nova" in ansible_product_name
set_fact:
mlnxofedinstall_args: "-q --skip-repo --without-fw-update"
when: buildKMOD!=True and ansible_os_family == "RedHat" and "OpenStack Nova" in ansible_product_name
- name: install drivers Redhat with firmware on BM
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
set_fact:
mlnxofedinstall_args: "-q --skip-repo"
when: 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
args:
chdir: "/tmp/{{ MELLANOX_DRIVER_SRC }}"
become: true
become_user: root
when: install_now and buildKMOD==True and ansible_os_family == "RedHat"
set_fact:
mlnxofedinstall_args: "./mlnxofedinstall -q --skip-repo --without-fw-update --add-kernel-support --hpc --kmp --all"
when: buildKMOD==True and ansible_os_family == "RedHat"
- name: build and install drivers Debian
shell: ./mlnxofedinstall -q --skip-repo --without-fw-update --hpc --dkms
set_fact:
mlnxofedinstall_args: "-q --skip-repo --without-fw-update --hpc --dkms"
when: buildKMOD==True and ansible_os_family == "Debian"
- name: run install
shell: "./mlnxofedinstall {{ mlnxofedinstall_args }}"
args:
chdir: "/tmp/{{ MELLANOX_DRIVER_SRC }}"
become: true
become_user: root
when: install_now and buildKMOD==True and ansible_os_family == "Debian"
when: install_now
#
# A REBOOT IS NEEDED AFTER SUCCESSFUL INSTALL
......
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