diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-01-18 22:17:10 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-01-18 22:19:16 +0100 |
| commit | a9614c6df034ee6d2ef7b9facb9d4af422f04170 (patch) | |
| tree | bec5895a7c504a97f86530df53c8521b09eab837 /roles/python | |
| parent | f2232d636bae4eed0dbdda8e2314b91a489d4878 (diff) | |
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
Diffstat (limited to 'roles/python')
| -rw-r--r-- | roles/python/tasks/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
