diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-11-03 22:58:57 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-11-03 22:58:57 +0100 |
| commit | 375bd8bb283cdce04cb2a65c489f0c6f46a975a9 (patch) | |
| tree | 08d08a1fd6fcf8ce1e5b78e7092ca755cf7bfc3f | |
| parent | 92808568c6a649ca27d28f2f3dcd79bb1874d0de (diff) | |
Fix python install not to always report changed
| -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 ddecbbbb..f8db4318 100644 --- a/roles/python/tasks/main.yml +++ b/roles/python/tasks/main.yml @@ -36,7 +36,7 @@ - name: "Install python versions" ansible.builtin.command: cmd: "uv python install {{ item }}" - args: - creates: "{{ ansible_env.HOME }}/.local/share/uv/python/cpython-{{ item }}*/bin/python{{ item }}" + register: python_install_result + changed_when: "'already installed' not in python_install_result.stderr" loop: "{{ python_versions }}" when: python_versions | length > 0 |
