summaryrefslogtreecommitdiffstats
path: root/roles/python
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-02-11 23:22:49 +0100
committerAhmed Abdelhalim <[email protected]>2026-02-11 23:22:49 +0100
commit02640a43c6dd3c89412777f6bf092e01022589ef (patch)
treed56cf00505cfa1c8835fe19b7a29bc7dadfbb6ca /roles/python
parent0e595ecc88cc8f4c5e5ee9415269a08a577e02ea (diff)
Fix the environment warning
Adding uv to /usr/local/bin which is already in PATH, removing the need of having environment in the path
Diffstat (limited to 'roles/python')
-rw-r--r--roles/python/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/python/tasks/main.yml b/roles/python/tasks/main.yml
index d272b9f6..e721e931 100644
--- a/roles/python/tasks/main.yml
+++ b/roles/python/tasks/main.yml
@@ -21,6 +21,13 @@
creates: "{{ ansible_facts['env']['HOME'] }}/.local/bin/uv"
when: not python_uv_binary.stat.exists
+- name: "Symlink uv to /usr/local/bin"
+ become: true
+ ansible.builtin.file:
+ src: "{{ ansible_facts['env']['HOME'] }}/.local/bin/uv"
+ dest: "/usr/local/bin/uv"
+ state: "link"
+
- name: "Add uv to shell profile"
ansible.builtin.blockinfile:
path: "{{ ansible_facts['env']['HOME'] }}/.bashrc"