Add CUDA drivers and other utils

This commit is contained in:
Jiri Podivin 2024-07-25 13:13:28 +00:00 committed by Jiri Podivin
parent 8e7f84edbc
commit f19c9f0edb

View file

@ -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)"