diff --git a/prepare_debian_installation_ansible.sh b/prepare_debian_installation_ansible.sh index 420e0b7..b1b2ec8 100644 --- a/prepare_debian_installation_ansible.sh +++ b/prepare_debian_installation_ansible.sh @@ -1,8 +1,8 @@ -apt-get update -apt install software-properties-common +apt-get -y update +apt -y install software-properties-common add-apt-repository --yes --update ppa:ansible/ansible -apt install ansible -apt install gh +apt -y install ansible +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 diff --git a/update_jobs/fix_cuda.yaml b/update_jobs/fix_cuda.yaml index 8b13789..b15f8b6 100644 --- a/update_jobs/fix_cuda.yaml +++ b/update_jobs/fix_cuda.yaml @@ -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"