From 40c6a060b013eb7fcc693d86ab9ffbc0ca4d33af Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Fri, 12 Jan 2018 18:34:35 +0000 Subject: [PATCH] Install pip when not using a kayobe target virtualenv Previously we were relying on kolla-ansible's baremetal role to install pip, but if virtualenvs are used for the target hosts with kolla-ansible (but not kayobe), then pip will not be installed to the system site packages. This change installs pip using easy_install if target virtualenvs are not in use for kayobe. --- ansible/kayobe-target-venv.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/kayobe-target-venv.yml b/ansible/kayobe-target-venv.yml index 10cf3ffbd..74e290b47 100644 --- a/ansible/kayobe-target-venv.yml +++ b/ansible/kayobe-target-venv.yml @@ -52,3 +52,9 @@ vars: activate_virtualenv_path: "{{ virtualenv }}" when: virtualenv is defined + + - name: Ensure pip is installed + easy_install: + name: pip + become: True + when: virtualenv is not defined