diff --git a/roles/dev_tools/tasks/python.yml b/roles/dev_tools/tasks/python.yml index 429d73b..43ca2fa 100644 --- a/roles/dev_tools/tasks/python.yml +++ b/roles/dev_tools/tasks/python.yml @@ -4,12 +4,9 @@ name: pyenv when: dev_tools_install_pyenv - name: Install Pipx - block: - - name: pipx - ansible.builtin.pip: - name: pipx - state: present - extra_args: --user - environment: - PIPX_HOME: '{{ ansible_env.HOME }}/.local/share/pipx' + ansible.builtin.apt: + name: pipx + state: present + lock_timeout: "{{ apt_lock_timeout }}" + become: true when: dev_tools_install_pipx