diff --git a/tests/Dockerfile.centos-6 b/tests/Dockerfile.centos-6 index 7fdd096..7df05ff 100644 --- a/tests/Dockerfile.centos-6 +++ b/tests/Dockerfile.centos-6 @@ -13,6 +13,7 @@ RUN pip install ansible RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers # Install Ansible inventory file +RUN mkdir - p /etc/ansible RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts CMD ["/usr/sbin/init"] diff --git a/tests/Dockerfile.centos-7 b/tests/Dockerfile.centos-7 index f3a91a0..ded17f1 100644 --- a/tests/Dockerfile.centos-7 +++ b/tests/Dockerfile.centos-7 @@ -22,6 +22,7 @@ RUN pip install ansible RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers # Install Ansible inventory file +RUN mkdir - p /etc/ansible RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts VOLUME ["/sys/fs/cgroup"]