Explicitly blacklist nouveau when installing from CUDA repos

This should avoid failures encountered in some RHEL 8 tests
This commit is contained in:
Adam DeConinck 2021-12-14 21:07:12 +00:00
parent c7aaa2e77f
commit 30fdeb781e
2 changed files with 12 additions and 1 deletions

View File

@ -44,7 +44,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:

View File

@ -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: