From 151facf7e290ad652aaa585b5923424a4084be7e Mon Sep 17 00:00:00 2001 From: Adam DeConinck Date: Tue, 29 Mar 2022 19:48:34 +0000 Subject: [PATCH] Ensure kmod is installed before launching CUDA install method --- tasks/install-ubuntu-cuda-repo.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/install-ubuntu-cuda-repo.yml b/tasks/install-ubuntu-cuda-repo.yml index a77228c..cf9a5d9 100644 --- a/tasks/install-ubuntu-cuda-repo.yml +++ b/tasks/install-ubuntu-cuda-repo.yml @@ -20,6 +20,11 @@ environment: "{{proxy_env if proxy_env is defined else {}}}" when: nvidia_driver_add_repos | bool +- name: esure kmod is installed + apt: + name: "kmod" + state: "present" + - name: blacklist nouveau kernel_blacklist: name: nouveau