Skip to content

Commit

Permalink
ansible: fix pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Jan 26, 2024
1 parent b8d9fb8 commit 932e0c0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions install-ansible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ fi

if [ ! -f get-pip.py ]; then curl "https://bootstrap.pypa.io/get-pip.py" -o get-pip.py; fi

python3 "get-pip.py"
python3 -m pip install -U pip
python3 "get-pip.py" --break-system-packages
python3 -m pip install -U pip --break-system-packages
python3 -m pip install -U virtualenv

if ! python3 -m pip install -U ansible; then
Expand Down
4 changes: 2 additions & 2 deletions playbooks/roles/python3/tasks/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
shell: |
# Install pip or pip3
curl "https://bootstrap.pypa.io/get-pip.py" -o get-pip.py
python3 "get-pip.py"
python3 -m pip install -U pip
python3 "get-pip.py" --break-system-packages
python3 -m pip install -U pip --break-system-packages
become: true
changed_when: false

Expand Down
4 changes: 2 additions & 2 deletions playbooks/roles/python3/tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
shell: |
# Install pip or pip3
curl "https://bootstrap.pypa.io/get-pip.py" -o get-pip.py
python3 "get-pip.py"
python3 -m pip install -U pip
python3 "get-pip.py" --break-system-packages
python3 -m pip install -U pip --break-system-packages
become: true
changed_when: false
4 changes: 2 additions & 2 deletions playbooks/tasks/python3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
shell: |
# Install pip or pip3
curl "https://bootstrap.pypa.io/get-pip.py" -o get-pip.py
python3 "get-pip.py"
python3 -m pip install -U pip
python3 "get-pip.py" --break-system-packages
python3 -m pip install -U pip --break-system-packages
become: true

- name: set python3 as default
Expand Down

0 comments on commit 932e0c0

Please sign in to comment.