Use native pip for container-check installation

We already install python2-pip on undercloud host and we
donot need extra task to again install pip for the same.

And easy_install module is not longer available with
python2 leading to failure of tasks unnecessary.

Removing it fixes the issues.

Tested here:
https://review.rdoproject.org/r/c/testproject/+/33649

Closes-Bug: #1927736

Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: Iee8f19ed9cc7a2e0fbf9f82b4c32fc4f8bd4c525
This commit is contained in:
Chandan Kumar (raukadah) 2021-05-12 13:57:23 +05:30
parent 7178744e79
commit d0fb142fde
1 changed files with 0 additions and 35 deletions

View File

@ -2,41 +2,6 @@
- when: update_containers|bool
block:
- name: ensure_pip on py2 systems
when: ansible_python.version.major == 2
block:
- command: "{{ python_cmd }} -m pip --version"
register: have_pip
changed_when: false
failed_when: false
- when: have_pip.rc != 0
become: true
block:
- name: check if python setup tool is installed
shell: "{{ python_cmd }} -m easy_install --version"
register: easy_install_exists
changed_when: false
failed_when: false
- name: Install python setuptools (easy_install)
when: easy_install_exists.rc != 0
# noqa 403
package:
state: latest
name:
- python2-setuptools
# python2-setuptools deprecates python-setuptools the former
# one being too old to be usable. included in openstack distro.
- name: easy-install pip
shell: |-
"{{ python_cmd }} -m easy_install pip"
"{{ python_cmd }} -m pip install pip==20.3.4"
changed_when: true
- name: Update pip
# noqa 403
pip: