Merge pull request #11 from ajdecon/ubuntu-include-pin

Fix driver upgrades on Ubuntu by adding package pin file
This commit is contained in:
Michael Balint 2020-01-08 09:14:02 -05:00 committed by GitHub
commit 40acb1484a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

3
files/cuda-ubuntu.pin Normal file
View File

@ -0,0 +1,3 @@
Package: *
Pin: release l=NVIDIA CUDA
Pin-Priority: 600

View File

@ -4,6 +4,14 @@
repo: ppa:graphics-drivers/ppa
state: absent
- name: add pin file
copy:
src: "cuda-ubuntu.pin"
dest: "/etc/apt/preferences.d/cuda-repository-pin-600"
owner: "root"
group: "root"
mode: "0644"
- name: add key
apt_key:
url: "{{ nvidia_driver_ubuntu_cuda_repo_gpgkey_url }}"