Installing with shell to safe my sanity
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
This commit is contained in:
parent
9fcb0ab9a6
commit
8a53a49117
1 changed files with 6 additions and 12 deletions
|
@ -48,18 +48,12 @@
|
||||||
- gcc-c++
|
- gcc-c++
|
||||||
|
|
||||||
- name: Download and install cuda drivers repo
|
- name: Download and install cuda drivers repo
|
||||||
ansible.builtin.yum_repository:
|
ansible.builtin.shell:
|
||||||
baseurl: https://developer.download.nvidia.com/compute/cuda/repos/fedora39/x86_64
|
cmd: |
|
||||||
gpgcheck: false
|
dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/fedora39/x86_64/cuda-fedora39.repo
|
||||||
name: cuda
|
dnf clean all
|
||||||
description: cuda package repo
|
dnf -y install cuda-toolkit-12-6
|
||||||
repo_gpgcheck: false
|
dnf -y module install nvidia-driver:open-dkms
|
||||||
|
|
||||||
- name: Install cuda drivers
|
|
||||||
ansible.builtin.dnf:
|
|
||||||
name:
|
|
||||||
- cuda-toolkit-12-5
|
|
||||||
- "nvidia-driver:open-dkms"
|
|
||||||
register: cuda_installation
|
register: cuda_installation
|
||||||
|
|
||||||
- name: Restart the system
|
- name: Restart the system
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue