From 76f97b406735540eb86fb3f293343ed4803c45d7 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Tue, 14 Jun 2016 07:47:22 +0200 Subject: [PATCH] Create ansible home directory in kolla-toolbox container This solves the following issue when running an ansible command inside the kolla-toolbox container: [Errno 13] Permission denied: '/home/ansible/.ansible' Change-Id: I654d27c49b7fcc50e018b61146084660894352aa Closes-bug: #1592268 --- docker/kolla-toolbox/Dockerfile.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/kolla-toolbox/Dockerfile.j2 b/docker/kolla-toolbox/Dockerfile.j2 index 1675117c62..351ba07f79 100644 --- a/docker/kolla-toolbox/Dockerfile.j2 +++ b/docker/kolla-toolbox/Dockerfile.j2 @@ -48,7 +48,7 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \ pyudev \ shade==1.4.0 -RUN useradd --user-group ansible --groups kolla \ +RUN useradd -m --user-group ansible --groups kolla \ && mkdir -p /etc/ansible /usr/share/ansible \ && echo 'localhost ansible_connection=local' > /etc/ansible/hosts \ && sed -i 's| "identity_api_version": "2.0",| "identity_api_version": "3",|' {{ os_client_config }}