Merge "Remove python 2 cleanup"

This commit is contained in:
Zuul 2020-06-16 12:50:08 +00:00 committed by Gerrit Code Review
commit f7d85a5f2f

View File

@ -43,22 +43,6 @@
become: True
when: kolla_ansible_venv is not none
# TODO(mgoddard): Remove this block when the previous release does not support
# Python 2.
- block:
- name: Check if virtualenv is python 2
stat:
path: "{{ kolla_ansible_venv }}/bin/python2"
register: stat_result
- name: Ensure python2 virtualenv is absent
file:
path: "{{ kolla_ansible_venv }}"
state: absent
when: stat_result.stat.exists
when:
- kolla_ansible_venv is not none
- name: Ensure the latest version of pip is installed
pip:
name: "{{ item.name }}"