From 874440defe6a095f075a9718837b51862c3f8814 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 Jun 2018 14:01:07 +0300 Subject: [PATCH] Don't install virtualenv as user. --- infrared/common/roles/shade/tasks/main.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/infrared/common/roles/shade/tasks/main.yml b/infrared/common/roles/shade/tasks/main.yml index 8d72106445..d90f38e3d3 100644 --- a/infrared/common/roles/shade/tasks/main.yml +++ b/infrared/common/roles/shade/tasks/main.yml @@ -15,10 +15,10 @@ name: pip - name: install virtualenv pip module + become: yes pip: name: virtualenv state: forcereinstall - extra_args: --user # required to avoid any conflicts in venv with # different packages versions (especially shade) @@ -31,12 +31,10 @@ # do not use shimming for these two special packages - name: shade virtualenv core deps pip: - name: "{{ item }}" + name: + - setuptools>=39.0.0 + - pip>=10.0.1 virtualenv: "{{ shade_path_venv }}" - virtualenv_command: "{{ ansible_env.HOME }}/.local/bin/virtualenv" - with_items: - - setuptools>=39.0.0 - - pip>=10.0.1 - name: shade virtualenv deps pip: @@ -48,4 +46,3 @@ # see https://projects.engineering.redhat.com/browse/RHOSINFRA-1562 # TODO: unpin shade to avoid other conflicts virtualenv: "{{ shade_path_venv }}" - virtualenv_command: "{{ ansible_env.HOME }}/.local/bin/virtualenv"