From a9614c6df034ee6d2ef7b9facb9d4af422f04170 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sun, 18 Jan 2026 22:17:10 +0100 Subject: Update python path setup to have it usable across multiple roles Since my dotfile setup already included this, I updated the markers to allow having this block only once and avoid having it duplicated many times Ref: https://git.sr.ht/~a14m/.rc/commit/56a3b484c39f227f4678517280ee560ac8c809d0 --- roles/python/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles') diff --git a/roles/python/tasks/main.yml b/roles/python/tasks/main.yml index f8db4318..c267b93c 100644 --- a/roles/python/tasks/main.yml +++ b/roles/python/tasks/main.yml @@ -27,9 +27,9 @@ state: "present" prepend_newline: true append_newline: true - marker: "# ==== {mark} ANSIBLE UV PYTHON CONFIG" + marker: "# ==== {mark} ANSIBLE PATH CONFIG" block: | - if command -v uv 1>/dev/null 2>&1; then + if [ -d "$HOME/.local/bin" ]; then export PATH="$HOME/.local/bin:$PATH" fi -- cgit v1.2.3