Skip to content

Commit 8e173c9

Browse files
author
Derek
committed
fix(gnome): add explicit become: true for system-wide pip upgrades
1 parent 4f3423b commit 8e173c9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

ansible/roles/dfe_developer/tasks/gnome_common.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,19 @@
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-
# Upgrade pip and pipx to latest - pip overwrites older distro versions in-place
54-
- name: Upgrade pip to latest
53+
# Upgrade pip and pipx system-wide - overwrites older distro versions in-place
54+
- name: Upgrade pip to latest (system-wide)
5555
ansible.builtin.pip:
5656
name: pip
5757
state: latest
58+
become: true
5859
when: ansible_facts['distribution'] in ['Ubuntu', 'Fedora']
5960

60-
- name: Upgrade pipx to latest
61+
- name: Upgrade pipx to latest (system-wide)
6162
ansible.builtin.pip:
6263
name: pipx
6364
state: latest
65+
become: true
6466
when: ansible_facts['distribution'] in ['Ubuntu', 'Fedora']
6567

6668
- name: Install gnome-extensions-cli via pipx

0 commit comments

Comments
 (0)