diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-11 23:22:49 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-11 23:22:49 +0100 |
| commit | 02640a43c6dd3c89412777f6bf092e01022589ef (patch) | |
| tree | d56cf00505cfa1c8835fe19b7a29bc7dadfbb6ca /roles | |
| parent | 0e595ecc88cc8f4c5e5ee9415269a08a577e02ea (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')
| -rw-r--r-- | roles/python/tasks/main.yml | 7 |
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" |
