From 4e0d09c2bbdf5252b79ce1e18cc7fd500dfeac19 Mon Sep 17 00:00:00 2001 From: Jiri Podivin Date: Wed, 11 Sep 2024 16:40:05 +0200 Subject: [PATCH] Adjusting paths to point to new bins and caches Signed-off-by: Jiri Podivin --- .../logdetective01.fedorainfracloud.org.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/playbooks/hosts/logdetective01.fedorainfracloud.org.yml b/playbooks/hosts/logdetective01.fedorainfracloud.org.yml index a230127543..029bc3328f 100644 --- a/playbooks/hosts/logdetective01.fedorainfracloud.org.yml +++ b/playbooks/hosts/logdetective01.fedorainfracloud.org.yml @@ -83,10 +83,6 @@ mode: "0777" recurse: true - - name: Set pip cache location to secondary drive - ansible.builtin.shell: - export PIP_CACHE_DIR=/mnt/srv/.cache/pip - - name: Create Hugging Face cache dir ansible.builtin.file: state: directory @@ -94,9 +90,18 @@ mode: "0777" recurse: true - - name: Set Hugging Face cache location to the secondary drive - ansible.builtin.shell: - export HUGGINGFACE_HUB_CACHE=/mnt/srv/.cache/huggingface + - name: Set cache locations to the secondary drive + ansible.builtin.blockinfile: + create: true + path: /etc/profile.d/externalcaches.sh + block: | + export HUGGINGFACE_HUB_CACHE=/mnt/srv/.cache/huggingface + export PIP_CACHE_DIR=/mnt/srv/.cache/pip + + - name: Set up CUDA binary paths + ansible.builtin.lineinfile: + path: /etc/profile.d/cudapath.sh + line: export PATH=/usr/local/cuda-12.6/bin${PATH:+:${PATH}} # this should be set to ansible_hostname # - name: "set hostname (required by some services, at least postfix need it)"