Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

[Nvidia] Upgrade GPU drivers version and new playbook to remove drivers #3899

Merged
merged 5 commits into from
Nov 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions contrib/kubespray/clean-nvidia-drivers-installed-by-apt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
- hosts: all
tasks:
- name: uninstall nvidia-drivers
apt:
name: nvidia-418
state: absent

- name: uninstall nvidia-opencl-icd
apt:
name: nvidia-opencl-icd-410
state: absent

- name: uninstall nvidia-prime
apt:
name: nvidia-prime
state: absent

- name: uninstall nvidia-settings
apt:
name: nvidia-settings
state: absent

- name: uninstall libcuda1
apt:
name: libcuda1-418
state: absent

- name: Remove dependencies that are no longer required
apt:
autoremove: yes

- name: Remove useless packages from the cache
apt:
autoclean: yes

- name: Remove the drivers repository from Ubuntu
apt_repository:
repo: ppa:graphics-drivers/ppa
state: absent

- name: Run the equivalent of "apt-get update" as a separate step
apt:
update_cache: yes

- name: reboot vm
reboot:


4 changes: 2 additions & 2 deletions contrib/kubespray/nvidia-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
apt:
update_cache: yes

- name: Install nvidia drivers, we will install 410 version
- name: Install nvidia drivers, we will install 418 version
apt:
name: nvidia-410
name: nvidia-418
state: present

- name: reboot vm
Expand Down