neuro_ansible/update_jobs/fix_cuda.yaml

47 lines
897 B
YAML
Raw Normal View History

2024-04-25 17:45:42 +02:00
---
- name: fix cuda
hosts: all
become: true
2024-04-25 16:48:40 +02:00
2024-04-28 02:49:20 +02:00
vars:
version: "40"
2024-04-25 17:45:42 +02:00
tasks:
- name: disable nvidia-driver
shell: "dnf -y module disable nvidia-driver"
- name: remove cuda
dnf:
name: "cuda*"
state: removed
allowerasing: true
ignore_errors: true
- name: remove nvidia-driver-cuda-libs
dnf:
name: "nvidia-driver*"
state: removed
allowerasing: true
ignore_errors: true
- name: install akmod-nvidia
dnf:
name: "akmod-nvidia"
state: latest
update_cache: true
skip_broken: true
nobest: false
allowerasing: true
- name: install cuda
dnf:
name: "cuda"
state: latest
update_cache: true
skip_broken: true
nobest: false
allowerasing: true
- name: reboot machine
shell: "reboot"