Merge "Update URL for get-pip.py"

This commit is contained in:
Zuul 2021-07-12 14:30:14 +00:00 committed by Gerrit Code Review
commit deb3e5bc8d

View File

@ -40,8 +40,17 @@
- python3_is_available.failed
- pip_is_installed.rc != 0
block:
- name: get python version
command: "python --version"
register: python_version
- name: download get-pip.py
get_url: url=https://bootstrap.pypa.io/get-pip.py dest=/tmp
get_url: url=https://bootstrap.pypa.io/pip/2.7/get-pip.py dest=/tmp
when: '"2.7" in python_version.stdout'
- name: download get-pip.py
get_url: url=https://bootstrap.pypa.io/pip/2.6/get-pip.py dest=/tmp
when: '"2.6" in python_version.stdout'
- name: install pip
become: true