X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=ubuntu14.04-onbuild%2FDockerfile;h=d9a187345d9fbcb5de8f7fd9d8ae67aa6fee1abf;hb=HEAD;hp=c0e400ff23ca76f04fcebd2214eb410ef582e81b;hpb=ebfd2bf236ddaf7206dc77877dc9eb2d07a0dec9;p=github%2Ffretlink%2Fdocker-ansible.git diff --git a/ubuntu14.04-onbuild/Dockerfile b/ubuntu14.04-onbuild/Dockerfile index c0e400f..d9a1873 100644 --- a/ubuntu14.04-onbuild/Dockerfile +++ b/ubuntu14.04-onbuild/Dockerfile @@ -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