From 35338089046188419a43d37d60399d0968c693b5 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Fri, 23 Dec 2016 01:05:57 +0800 Subject: Run sudo with -H parameter to set the proper home dir Change-Id: Ib273f50bd7fb889e0025f58c11dd89f39ca8e4ca Closes-Bug: #1652112 --- tools/setup_gate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh index 595a24956..178f34309 100755 --- a/tools/setup_gate.sh +++ b/tools/setup_gate.sh @@ -126,7 +126,7 @@ function setup_ansible { # Record the running state of the environment as seen by the setup module ansible all -i ${RAW_INVENTORY} -m setup > /tmp/logs/ansible/initial-setup - sudo pip install ara + sudo -H pip install ara sudo mkdir /etc/ansible sudo tee /etc/ansible/ansible.cfg<