Install setuptools when using easy_install

Change-Id: Iee7da01c111a2fdac986861c1da113c075259854
Story: 2003380
Task: 24455
This commit is contained in:
Mark Goddard 2018-08-09 10:11:36 +01:00
parent 34e410dd46
commit 9b8ee81869
1 changed files with 11 additions and 4 deletions

View File

@ -68,8 +68,15 @@
activate_virtualenv_path: "{{ virtualenv }}"
when: virtualenv is defined
- name: Ensure pip is installed
easy_install:
name: pip
become: True
- block:
- name: Ensure the python-setuptools package is installed
package:
name: python-setuptools
state: installed
become: True
- name: Ensure pip is installed
easy_install:
name: pip
become: True
when: virtualenv is not defined