Run sudo with -H parameter to set the proper home dir

Change-Id: Ib273f50bd7fb889e0025f58c11dd89f39ca8e4ca
Closes-Bug: #1652112
This commit is contained in:
Jeffrey Zhang 2016-12-23 01:05:57 +08:00
parent b25bd5c04b
commit 3533808904
1 changed files with 1 additions and 1 deletions

View File

@ -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<<EOF
[defaults]