diff --git a/tasks/install-redhat.yml b/tasks/install-redhat.yml index 897a0e5..12fa765 100644 --- a/tasks/install-redhat.yml +++ b/tasks/install-redhat.yml @@ -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: 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: