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