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

Commit

Permalink
[Nvidia] Upgrade GPU drivers version and new playbook to remove drive…
Browse files Browse the repository at this point in the history
…rs (#3899)
  • Loading branch information
ydye committed Nov 28, 2019
1 parent 876d71d commit 6db30d7
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 2 deletions.
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

0 comments on commit 6db30d7

Please sign in to comment.