Adjusting paths to point to new bins and caches
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
This commit is contained in:
parent
79ee807af5
commit
4e0d09c2bb
1 changed files with 12 additions and 7 deletions
|
@ -83,10 +83,6 @@
|
||||||
mode: "0777"
|
mode: "0777"
|
||||||
recurse: true
|
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
|
- name: Create Hugging Face cache dir
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
state: directory
|
state: directory
|
||||||
|
@ -94,9 +90,18 @@
|
||||||
mode: "0777"
|
mode: "0777"
|
||||||
recurse: true
|
recurse: true
|
||||||
|
|
||||||
- name: Set Hugging Face cache location to the secondary drive
|
- name: Set cache locations to the secondary drive
|
||||||
ansible.builtin.shell:
|
ansible.builtin.blockinfile:
|
||||||
export HUGGINGFACE_HUB_CACHE=/mnt/srv/.cache/huggingface
|
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
|
# this should be set to ansible_hostname
|
||||||
# - name: "set hostname (required by some services, at least postfix need it)"
|
# - name: "set hostname (required by some services, at least postfix need it)"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue