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

View File

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