]> git.immae.eu Git - github/fretlink/docker-ansible.git/blobdiff - ubuntu14.04-onbuild/Dockerfile
debian9: use "slim" version of debian image
[github/fretlink/docker-ansible.git] / ubuntu14.04-onbuild / Dockerfile
index c0e400ff23ca76f04fcebd2214eb410ef582e81b..d9a187345d9fbcb5de8f7fd9d8ae67aa6fee1abf 100644 (file)
@@ -28,14 +28,20 @@ RUN echo "===> Adding Ansible's PPA..."  && \
     \
     \
     echo "===> Adding hosts for convenience..."  && \
-    echo '[local]\nlocalhost\n' > /etc/ansible/hosts
+    echo 'localhost' > /etc/ansible/hosts
 
 
 COPY ansible-playbook-wrapper /usr/local/bin/
 
-ONBUILD  RUN  DEBIAN_FRONTEND=noninteractive  apt-get update
-ONBUILD  WORKDIR /tmp
+ONBUILD  RUN  DEBIAN_FRONTEND=noninteractive  apt-get update   && \
+              echo "===> Updating TLS certificates..."         && \
+              apt-get install -y openssl ca-certificates
+
+ONBUILD  WORKDIR  /tmp
 ONBUILD  COPY  .  /tmp
+ONBUILD  RUN  \
+              echo "===> Diagnosis: host information..."  && \
+              ansible -c local -m setup all