From f19c9f0edb6e9946681106c8c2f98d0295c0589b Mon Sep 17 00:00:00 2001 From: Jiri Podivin Date: Thu, 25 Jul 2024 13:13:28 +0000 Subject: [PATCH] Add CUDA drivers and other utils --- .../logdetective01.fedorainfracloud.org.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/playbooks/hosts/logdetective01.fedorainfracloud.org.yml b/playbooks/hosts/logdetective01.fedorainfracloud.org.yml index bba177b16d..a35decf6f8 100644 --- a/playbooks/hosts/logdetective01.fedorainfracloud.org.yml +++ b/playbooks/hosts/logdetective01.fedorainfracloud.org.yml @@ -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)"