Skip to content

Commit

Permalink
Merge pull request #51 from ajdecon/rhel8-fix
Browse files Browse the repository at this point in the history
Explicitly blacklist nouveau when installing from CUDA repos
  • Loading branch information
ajdecon authored Jan 28, 2022
2 parents f1a0820 + 30fdeb7 commit 8e31cbc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tasks/install-redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@
when: nvidia_driver_add_repos | bool

- name: install dependencies
yum: name=dkms
yum:
name: dkms
state: present

- name: blacklist nouveau
kernel_blacklist:
name: nouveau
state: present

- name: add repo
yum_repository:
Expand Down
4 changes: 4 additions & 0 deletions tasks/install-ubuntu-cuda-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
environment: "{{proxy_env if proxy_env is defined else {}}}"
when: nvidia_driver_add_repos | bool

- name: blacklist nouveau
kernel_blacklist:
name: nouveau
state: present

- name: add repo
apt_repository:
Expand Down

0 comments on commit 8e31cbc

Please sign in to comment.