From 5c935fd0cc92e751ae0a08ea18fd174aa4e5cbe1 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 5 Feb 2025 17:11:28 +0100 Subject: [PATCH] logdetective: do not reboot the machine every-time --- roles/logdetective/tasks/main.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/roles/logdetective/tasks/main.yml b/roles/logdetective/tasks/main.yml index c37f2aac62..f0208fe2af 100644 --- a/roles/logdetective/tasks/main.yml +++ b/roles/logdetective/tasks/main.yml @@ -13,12 +13,16 @@ - wget - gcc-c++ -- name: Download and install cuda drivers repo - ansible.builtin.shell: - cmd: | - cd /etc/yum.repos.d/ && wget https://developer.download.nvidia.com/compute/cuda/repos/fedora41/x86_64/cuda-fedora41.repo - dnf clean all - dnf -y install cuda-toolkit-12 +- name: Download file with check (sha256) + ansible.builtin.get_url: + url: https://developer.download.nvidia.com/compute/cuda/repos/fedora41/x86_64/cuda-fedora41.repo + dest: /etc/yum.repos.d/ + tags: + - cuda_installation + +- name: install cuda + ansible.builtin.package: + name: cuda-toolkit-12 register: cuda_installation tags: - cuda_installation