Add CUDA drivers and other utils
This commit is contained in:
parent
8e7f84edbc
commit
f19c9f0edb
1 changed files with 26 additions and 0 deletions
|
@ -34,6 +34,32 @@
|
|||
|
||||
tasks:
|
||||
- import_tasks: "{{ tasks_path }}/cloud_setup_basic.yml"
|
||||
- name: Install basic packages
|
||||
ansible.builtin.dnf:
|
||||
name:
|
||||
- python3-pip
|
||||
- python3-devel
|
||||
- pciutils
|
||||
- git
|
||||
- podman
|
||||
- podman-compose
|
||||
- wget
|
||||
- gcc-c++
|
||||
|
||||
- name: Download and install cuda drivers repo
|
||||
ansible.builtin.dnf:
|
||||
name: https://developer.download.nvidia.com/compute/cuda/12.5.1/local_installers/cuda-repo-fedora39-12-5-local-12.5.1_555.42.06-1.x86_64.rpm
|
||||
|
||||
- name: Install cuda drivers
|
||||
ansible.builtin.dnf:
|
||||
name:
|
||||
- cuda-toolkit-12-5
|
||||
- nvidia-driver:open-dkms
|
||||
register: cuda_installation
|
||||
|
||||
- name: Restart the system
|
||||
ansible.builtin.reboot:
|
||||
when: cuda_installation.changed
|
||||
|
||||
# this should be set to ansible_hostname
|
||||
# - name: "set hostname (required by some services, at least postfix need it)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue