Skip to content

Commit c514556

Browse files
committed
tiny tidy
1 parent f6277c4 commit c514556

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ansible/roles/cuda/tasks/install.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@
3333
ansible.builtin.shell:
3434
cmd: >-
3535
dnf module info nvidia-driver:{{ cuda_nvidia_driver_stream }} |
36-
grep {{ cuda_nvidia_driver_version }}.el{{ ansible_distribution_major_version }}.{{ ansible_architecture }}
36+
grep -F {{ cuda_nvidia_driver_version }}.el{{ ansible_distribution_major_version }}.{{ ansible_architecture }}
3737
changed_when: false
3838
register: _cuda_driver_module_packages
3939
# returns a list of lines like ' : libnvidia-cfg-3:570.133.20-1.el9.x86_64'
4040

4141
- name: Install nvidia driver packages
42+
# its not possible to install a version of a module
43+
# apparently this is the best way of approximating that
44+
# but it is more idempotent than the module install anyway
4245
ansible.builtin.dnf:
4346
name: "{{ _cuda_driver_module_packages.stdout_lines | map('trim', ': ') }}"
4447
register: _cuda_driver_install

0 commit comments

Comments
 (0)