docker.userguide: Fix instruction for installing ansible 01/65701/1
authorRadoslaw Jablonski <radoslawx.jablonski@intel.com>
Wed, 5 Dec 2018 13:15:01 +0000 (13:15 +0000)
committerRadoslaw Jablonski <radoslawx.jablonski@intel.com>
Mon, 10 Dec 2018 12:59:26 +0000 (12:59 +0000)
Previous version of instruction for installing ansible under
pip was problematic when called as a regular user because
pip was trying to use wrong(local home) directory for caching.
It may cause problems when home directory is located on NFS.

Change-Id: Ia9eb15d1be0db0cb5aa5f3fd04a7a166ff1046b2
Signed-off-by: Radoslaw Jablonski <radoslawx.jablonski@intel.com>
docs/release/userguide/docker.userguide.rst

index 2b559f8..3ee16e3 100644 (file)
@@ -170,7 +170,7 @@ To install Ansible 2.6.3 on Ubuntu:
 
     $ sudo apt-get install python
     $ sudo apt-get install python-pip
-    $ sudo pip install 'ansible==2.6.3'
+    $ sudo -H pip install 'ansible==2.6.3'
 
 The following steps have been verified with Ansible 2.6.3 on Centos 7.5.
 To install Ansible 2.6.3 on Centos:
@@ -180,7 +180,7 @@ To install Ansible 2.6.3 on Centos:
     $ sudo yum install python
     $ sudo yum install epel-release
     $ sudo yum install python-pip
-    $ sudo pip install 'ansible==2.6.3'
+    $ sudo -H pip install 'ansible==2.6.3'
 
 Clone barometer repo
 ^^^^^^^^^^^^^^^^^^^^