summaryrefslogtreecommitdiffstats
path: root/xci
diff options
context:
space:
mode:
authorYolanda Robla <yroblamo@redhat.com>2017-06-01 11:25:01 +0200
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2017-08-11 12:56:12 -0700
commit2b33e55e1842e09bd816a97e082a9830346cf6ce (patch)
treec3d7cb1e33b97a885be4399c90f366e2cd9ec30b /xci
parentcd7f083cf7fec2668f94a3b686d68f73483cdfe4 (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 'xci')
-rw-r--r--xci/file/install-ansible.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/xci/file/install-ansible.sh b/xci/file/install-ansible.sh
index daa7f516..67a49b39 100644
--- a/xci/file/install-ansible.sh
+++ b/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