summaryrefslogtreecommitdiffstats
path: root/prototypes/xci
diff options
context:
space:
mode:
authorYolanda Robla <yroblamo@redhat.com>2017-06-01 11:25:01 +0200
committerYolanda Robla <yroblamo@redhat.com>2017-06-01 11:27:21 +0200
commitb6052ac5efcf112245f0dc958373c31785d527d1 (patch)
tree6b297727e3613d5e24ad9532e78d72b5d981d75b /prototypes/xci
parent237c0e6c0e81dbd3317093bad3d91b00b0a7a6b8 (diff)
Fix ansible installation for non-root
Currently ansible was set to be installed with pip, but this fails for non-root user. Instead of that, execute pip with --user flag, so we don't need root permissions and it is only installed for the current user. Change-Id: Ib37a2a3866b4b48aca834b894cdd128ee63b31d6
Diffstat (limited to 'prototypes/xci')
-rw-r--r--prototypes/xci/file/install-ansible.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/prototypes/xci/file/install-ansible.sh b/prototypes/xci/file/install-ansible.sh
index daa7f516d..67a49b397 100644
--- a/prototypes/xci/file/install-ansible.sh
+++ b/prototypes/xci/file/install-ansible.sh
@@ -131,6 +131,6 @@ fi
PIP=$(which pip)
-sudo -H -E ${PIP} install "pip>6.0"
+${PIP} install --user "pip>6.0"
-pip install ansible==$XCI_ANSIBLE_PIP_VERSION
+${PIP} install --user --upgrade ansible==$XCI_ANSIBLE_PIP_VERSION