From 30fdeb781ee2d138f3bd1af09cdecf44c31486d8 Mon Sep 17 00:00:00 2001 From: Adam DeConinck Date: Tue, 14 Dec 2021 21:07:12 +0000 Subject: [PATCH] Explicitly blacklist nouveau when installing from CUDA repos This should avoid failures encountered in some RHEL 8 tests --- tasks/install-redhat.yml | 9 ++++++++- tasks/install-ubuntu-cuda-repo.yml | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/tasks/install-redhat.yml b/tasks/install-redhat.yml index d72f37b..1905ffe 100644 --- a/tasks/install-redhat.yml +++ b/tasks/install-redhat.yml @@ -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: diff --git a/tasks/install-ubuntu-cuda-repo.yml b/tasks/install-ubuntu-cuda-repo.yml index 886b3c1..a77228c 100644 --- a/tasks/install-ubuntu-cuda-repo.yml +++ b/tasks/install-ubuntu-cuda-repo.yml @@ -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: