Update
This commit is contained in:
parent
06fcf0ce6d
commit
28c9514918
2 changed files with 47 additions and 5 deletions
|
@ -1,8 +1,8 @@
|
||||||
apt-get update
|
apt-get -y update
|
||||||
apt install software-properties-common
|
apt -y install software-properties-common
|
||||||
add-apt-repository --yes --update ppa:ansible/ansible
|
add-apt-repository --yes --update ppa:ansible/ansible
|
||||||
apt install ansible
|
apt -y install ansible
|
||||||
apt install gh
|
apt -y install gh
|
||||||
|
|
||||||
apt install mc vi sshpass ssh-keygen inetutils-ping git-all
|
apt -y install mc vim sshpass inetutils-ping git-all
|
||||||
|
|
||||||
|
|
|
@ -1 +1,43 @@
|
||||||
|
---
|
||||||
|
- name: fix cuda
|
||||||
|
hosts: all
|
||||||
|
become: true
|
||||||
|
|
||||||
|
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"
|
||||||
|
|
Loading…
Reference in a new issue