summaryrefslogtreecommitdiffstats
path: root/roles/cuda/tasks/cuda_init.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/cuda/tasks/cuda_init.yml')
-rw-r--r--roles/cuda/tasks/cuda_init.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/cuda/tasks/cuda_init.yml b/roles/cuda/tasks/cuda_init.yml
index ff54994..6d579de 100644
--- a/roles/cuda/tasks/cuda_init.yml
+++ b/roles/cuda/tasks/cuda_init.yml
@@ -31,6 +31,12 @@
enabled: yes
when: ansible_service_mgr == "systemd"
+- name: enable the DKMS systemd service
+ service:
+ name: dkms
+ enabled: yes
+ when: ansible_service_mgr == "systemd"
+
- name: check if cuda_gpu_name0 ( /dev/nvidia0 ) exists
stat:
path: "{{ cuda_gpu_name0 }}"