File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
cuda_distro : " rhel{{ ansible_distribution_major_version }}"
2
2
cuda_repo : " https://developer.download.nvidia.com/compute/cuda/repos/{{ cuda_distro }}/x86_64/cuda-{{ cuda_distro }}.repo"
3
- cuda_driver_stream : default
3
+ cuda_driver_stream : open-dkms
4
4
cuda_package_version : ' latest'
5
5
cuda_packages :
6
6
- " cuda{{ ('-' + cuda_package_version) if cuda_package_version != 'latest' else '' }}"
Original file line number Diff line number Diff line change 25
25
register : _cuda_driver_module_enabled
26
26
27
27
- name : Enable nvidia driver module
28
- ansible.builtin.command : " dnf module enable -y nvidia-driver:{{ 'open-dkms' if cuda_driver_stream == 'default' else cuda_driver_stream }}"
28
+ ansible.builtin.command : " dnf module enable -y nvidia-driver:{{ cuda_driver_stream }}"
29
29
register : _cuda_driver_module_enable
30
30
when : " 'No matching Modules to list' in _cuda_driver_module_enabled.stderr"
31
31
changed_when : " 'Nothing to do' not in _cuda_driver_module_enable.stdout"
You can’t perform that action at this time.
0 commit comments