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 11cuda_distro : " rhel{{ ansible_distribution_major_version }}"
22cuda_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
44cuda_package_version : ' latest'
55cuda_packages :
66 - " cuda{{ ('-' + cuda_package_version) if cuda_package_version != 'latest' else '' }}"
Original file line number Diff line number Diff line change 2525 register : _cuda_driver_module_enabled
2626
2727- 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 }}"
2929 register : _cuda_driver_module_enable
3030 when : " 'No matching Modules to list' in _cuda_driver_module_enabled.stderr"
3131 changed_when : " 'Nothing to do' not in _cuda_driver_module_enable.stdout"
You can’t perform that action at this time.
0 commit comments