Skip to content
Snippets Groups Projects
Commit 1ad2a34f authored by Simon Michnowicz's avatar Simon Michnowicz
Browse files

Change to remove old driver before installing new one. This is to prevent situations

where old rpm's are still left on the system. As a result of this Lustre packages are
uninstalled so you will need to call lustre role after invoking it. This code comes
directly from update  clusterbuild/local_roles/m3_force_upgrade


Former-commit-id: fc606a27
parent cb30fa6c
No related branches found
No related tags found
No related merge requests found
......@@ -65,10 +65,53 @@
become_user: root
when: install_now
#remove old mellanox drivers as they may interfere with an update
- name: stop lustre
service: name=lustre-client state=stopped
become: true
become_user: root
ignore_errors: true
when: install_now
- name: remove ipa stuff
yum: name={{ item }} state=absent
become: true
become_user: root
ignore_errors: true
with_items:
- ipa-common
- ipa-python-compat
- python2-ipalib
when: install_now
- name: remove unnecessary packages that break stuff
yum: name={{ item }} state=absent
become: true
become_user: root
ignore_errors: true
with_items:
- libgpod
- usbmuxd
- libmlx5
- libmlx4
- libibverbs
when: install_now
- name: remove mellanox rpms
yum: name={{ item }} state=absent
become: true
become_user: root
ignore_errors: true
with_items:
- mlnx-ofa_kernel
- mlnx-ofa_kernel-devel
- mlnx-ofa_kernel-modules
when: install_now
- name: install drivers
shell: ./mlnxofedinstall -q --add-kernel-support --force --skip-repo
args:
#more changes
chdir: "/tmp/{{ MELLANOX_DRIVER_SRC }}"
become: true
become_user: root
......
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