diff options
| author | Ahmed AbdelHalim <[email protected]> | 2026-01-24 16:24:28 +0100 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2026-01-24 16:24:28 +0100 |
| commit | ab9b04baac2970fdcea9999e2bcfd7d60d3fc23d (patch) | |
| tree | 7fcc3918e290e31309d74eb0b784fa6a00318ee3 /roles/python | |
| parent | 3cf08783dec1d6c5f9e2a7933e730b054d78e376 (diff) | |
Fix ansible_facts to use only bracket notation instead of dot notation
Co-authored-by: claude.ai
Diffstat (limited to 'roles/python')
| -rw-r--r-- | roles/python/tasks/main.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/python/tasks/main.yml b/roles/python/tasks/main.yml index 3b41d8aa..d272b9f6 100644 --- a/roles/python/tasks/main.yml +++ b/roles/python/tasks/main.yml @@ -4,7 +4,7 @@ - name: "Check if uv binary exists" ansible.builtin.stat: - path: "{{ ansible_facts['env'].HOME }}/.local/bin/uv" + path: "{{ ansible_facts['env']['HOME'] }}/.local/bin/uv" register: python_uv_binary - name: "Download uv installer" @@ -18,12 +18,12 @@ ansible.builtin.command: cmd: "/tmp/install_uv.sh" args: - creates: "{{ ansible_facts['env'].HOME }}/.local/bin/uv" + creates: "{{ ansible_facts['env']['HOME'] }}/.local/bin/uv" when: not python_uv_binary.stat.exists - name: "Add uv to shell profile" ansible.builtin.blockinfile: - path: "{{ ansible_facts['env'].HOME }}/.bashrc" + path: "{{ ansible_facts['env']['HOME'] }}/.bashrc" state: "present" prepend_newline: true append_newline: true |
