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
(cherry picked from commit 76f97b4067)
This commit is contained in:
Christian Berendt 2016-06-14 07:47:22 +02:00 committed by Mohammed Salih Puthenpurayil
parent 5f6d287644
commit 518e14e294
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ RUN git clone https://github.com/ansible/ansible.git \
&& git submodule update --init --recursive \
&& pip --no-cache-dir install .
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",|' /usr/lib/python2.7/site-packages/os_client_config/defaults.json