Skip to content

Commit 874440d

Browse files
rootFederico Ressi
authored andcommitted
Don't install virtualenv as user.
1 parent 3281824 commit 874440d

File tree

1 file changed

+4
-7
lines changed
  • infrared/common/roles/shade/tasks

1 file changed

+4
-7
lines changed

infrared/common/roles/shade/tasks/main.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
name: pip
1616

1717
- name: install virtualenv pip module
18+
become: yes
1819
pip:
1920
name: virtualenv
2021
state: forcereinstall
21-
extra_args: --user
2222

2323
# required to avoid any conflicts in venv with
2424
# different packages versions (especially shade)
@@ -31,12 +31,10 @@
3131
# do not use shimming for these two special packages
3232
- name: shade virtualenv core deps
3333
pip:
34-
name: "{{ item }}"
34+
name:
35+
- setuptools>=39.0.0
36+
- pip>=10.0.1
3537
virtualenv: "{{ shade_path_venv }}"
36-
virtualenv_command: "{{ ansible_env.HOME }}/.local/bin/virtualenv"
37-
with_items:
38-
- setuptools>=39.0.0
39-
- pip>=10.0.1
4038

4139
- name: shade virtualenv deps
4240
pip:
@@ -48,4 +46,3 @@
4846
# see https://projects.engineering.redhat.com/browse/RHOSINFRA-1562
4947
# TODO: unpin shade to avoid other conflicts
5048
virtualenv: "{{ shade_path_venv }}"
51-
virtualenv_command: "{{ ansible_env.HOME }}/.local/bin/virtualenv"

0 commit comments

Comments
 (0)