Skip to content

Commit 66a2056

Browse files
committed
make install of cuda packages optional
1 parent ad20d20 commit 66a2056

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ansible/roles/cuda/tasks/install.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@
4343
- name: Install cuda packages
4444
ansible.builtin.dnf:
4545
name: "{{ cuda_packages }}"
46+
when: cuda_package_version != 'none'
4647
register: cuda_package_install
4748

4849
- name: Add cuda binaries to path
4950
lineinfile:
5051
path: /etc/profile.d/sh.local
5152
line: 'export PATH=$PATH:$(ls -1d /usr/local/cuda-* | sort -V | tail -1)/bin'
53+
when: cuda_package_version != 'none'
5254

5355
- name: Enable NVIDIA Persistence Daemon
5456
systemd:

0 commit comments

Comments
 (0)