File tree Expand file tree Collapse file tree
ansible/roles/dfe_developer/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050
5151# Distro-packaged pipx can be outdated (Ubuntu 24.04 has 1.4.3).
5252# community.general.pipx requires >= 1.7.0 for application parameter.
53- # Remove distro pipx and install via pip to /usr/local (system-wide, latest version)
54- - name : Remove distro-packaged pipx (outdated version) - Ubuntu
55- ansible.builtin.apt :
56- name : pipx
57- state : absent
58- when : ansible_facts['distribution'] == 'Ubuntu'
59-
60- - name : Remove distro-packaged pipx (outdated version) - Fedora
61- ansible.builtin.dnf :
62- name : pipx
63- state : absent
64- when : ansible_facts['distribution'] == 'Fedora'
53+ # Upgrade pip and pipx to latest - pip overwrites older distro versions in-place
54+ - name : Upgrade pip to latest
55+ ansible.builtin.pip :
56+ name : pip
57+ state : latest
58+ when : ansible_facts['distribution'] in ['Ubuntu', 'Fedora']
6559
66- - name : Install pipx via pip system-wide ( latest version)
60+ - name : Upgrade pipx to latest
6761 ansible.builtin.pip :
6862 name : pipx
6963 state : latest
You can’t perform that action at this time.
0 commit comments