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 4848 changed_when : false
4949 when : ansible_facts['distribution'] in ['Ubuntu', 'Fedora']
5050
51- # Ubuntu 24.04 ships pipx 1.4.3 but community.general.pipx requires >= 1.7.0
52- # Upgrade pipx via pip before using the module
53- - name : Upgrade pipx to latest (Ubuntu - apt version is too old)
51+ # Distro-packaged pip/pipx can be outdated. Upgrade to latest via pip.
52+ # --break-system-packages allows modifying system Python packages.
53+ # community.general.pipx requires >= 1.7.0 for application parameter.
54+ - name : Upgrade pip to latest
55+ ansible.builtin.pip :
56+ name : pip
57+ state : latest
58+ extra_args : --user --break-system-packages
59+ become : false
60+ become_user : " {{ dfe_actual_user }}"
61+ when : ansible_facts['distribution'] in ['Ubuntu', 'Fedora']
62+
63+ - name : Upgrade pipx to latest
5464 ansible.builtin.pip :
5565 name : pipx
5666 state : latest
5767 extra_args : --user --break-system-packages
5868 become : false
5969 become_user : " {{ dfe_actual_user }}"
60- when : ansible_facts['distribution'] == 'Ubuntu'
70+ when : ansible_facts['distribution'] in [ 'Ubuntu', 'Fedora']
6171
6272- name : Install gnome-extensions-cli via pipx
6373 community.general.pipx :
You can’t perform that action at this time.
0 commit comments