From 932e0c0823a87465709610a71b4f5a0e7c594435 Mon Sep 17 00:00:00 2001 From: naisanzaa Date: Fri, 26 Jan 2024 03:54:49 -0800 Subject: [PATCH] ansible: fix pip install --- install-ansible.sh | 4 ++-- playbooks/roles/python3/tasks/Debian.yml | 4 ++-- playbooks/roles/python3/tasks/RedHat.yml | 4 ++-- playbooks/tasks/python3.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/install-ansible.sh b/install-ansible.sh index 48f6950e..044dc988 100644 --- a/install-ansible.sh +++ b/install-ansible.sh @@ -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 diff --git a/playbooks/roles/python3/tasks/Debian.yml b/playbooks/roles/python3/tasks/Debian.yml index 92ee173c..af807c46 100644 --- a/playbooks/roles/python3/tasks/Debian.yml +++ b/playbooks/roles/python3/tasks/Debian.yml @@ -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 diff --git a/playbooks/roles/python3/tasks/RedHat.yml b/playbooks/roles/python3/tasks/RedHat.yml index b087c053..5b432b5f 100644 --- a/playbooks/roles/python3/tasks/RedHat.yml +++ b/playbooks/roles/python3/tasks/RedHat.yml @@ -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 \ No newline at end of file diff --git a/playbooks/tasks/python3.yml b/playbooks/tasks/python3.yml index 682a70c8..9e54e1ac 100644 --- a/playbooks/tasks/python3.yml +++ b/playbooks/tasks/python3.yml @@ -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