]> git.immae.eu Git - github/fretlink/docker-ansible.git/blobdiff - centos6-onbuild/Dockerfile
Fix: install "initscripts" package for CentOS 6 Dockerfile to emulate normal OS behavior.
[github/fretlink/docker-ansible.git] / centos6-onbuild / Dockerfile
index cb964936500b3376aee7642fd57611fcbf53527c..972b5dc11ef4e03e6f4fa9699f471690bcdc4351 100644 (file)
@@ -21,6 +21,10 @@ RUN echo "===> Installing EPEL..."        && \
     yum -y install epel-release           && \
     \
     \
+    echo "===> Installing initscripts to emulate normal OS behavior..."  && \
+    yum -y install initscripts            && \
+    \
+    \
     echo "===> Installing Ansible..."     && \
     yum -y install ansible sudo           && \
     \
@@ -43,6 +47,9 @@ COPY ansible-playbook-wrapper /usr/local/bin/
 
 ONBUILD  WORKDIR /tmp
 ONBUILD  COPY  .  /tmp
+ONBUILD  RUN  \
+              echo "===> Diagnosis: host information..."  && \
+              ansible -c local -m setup all