Skip to content

Commit

Permalink
Merge pull request #11 from ajdecon/ubuntu-include-pin
Browse files Browse the repository at this point in the history
Fix driver upgrades on Ubuntu by adding package pin file
  • Loading branch information
michael-balint authored Jan 8, 2020
2 parents 790823e + c2b8020 commit 40acb14
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions files/cuda-ubuntu.pin
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Package: *
Pin: release l=NVIDIA CUDA
Pin-Priority: 600
8 changes: 8 additions & 0 deletions tasks/install-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 40acb14

Please sign in to comment.