]> git.immae.eu Git - github/fretlink/docker-ansible.git/commitdiff
Add: diagnosis info (ansible_* variables) in *-onbuild images.
authorWilliam Yeh <william.pjyeh@gmail.com>
Fri, 15 May 2015 01:09:13 +0000 (09:09 +0800)
committerWilliam Yeh <william.pjyeh@gmail.com>
Fri, 15 May 2015 01:09:13 +0000 (09:09 +0800)
centos6-onbuild/Dockerfile
centos7-onbuild/Dockerfile
debian7-onbuild/Dockerfile
debian8-onbuild/Dockerfile
ubuntu12.04-onbuild/Dockerfile
ubuntu14.04-onbuild/Dockerfile

index cb964936500b3376aee7642fd57611fcbf53527c..85f1e180781e2d8e333604aedcbdce01cd9d26da 100644 (file)
@@ -43,6 +43,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
 
 
 
index d668cbad2396b242874aa69168e518e051057000..64233d8a3d5454c3e52db892c33bcbc50716af5f 100644 (file)
@@ -43,6 +43,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
 
 
 
index 16209908235f8bad62a863017cbb98d1ddbbf1fb..45bbd7f648b023f339cca97d29008f8980c0b80f 100644 (file)
@@ -40,6 +40,9 @@ COPY ansible-playbook-wrapper /usr/local/bin/
 ONBUILD  RUN  DEBIAN_FRONTEND=noninteractive  apt-get update
 ONBUILD  WORKDIR /tmp
 ONBUILD  COPY  .  /tmp
+ONBUILD  RUN  \
+              echo "===> Diagnosis: host information..."  && \
+              ansible -c local -m setup all
 
 
 
index 04eadb59ad7dcbeb9b3f3ae69f1721d018a22700..5db6cdf5d4c245655108a44d2d76f8f4c99181b8 100644 (file)
@@ -40,6 +40,9 @@ COPY ansible-playbook-wrapper /usr/local/bin/
 ONBUILD  RUN  DEBIAN_FRONTEND=noninteractive  apt-get update
 ONBUILD  WORKDIR /tmp
 ONBUILD  COPY  .  /tmp
+ONBUILD  RUN  \
+              echo "===> Diagnosis: host information..."  && \
+              ansible -c local -m setup all
 
 
 
index f7a5aa040f75813b138224d9d5a6c5175d840191..2fc78203f19aa46a7fb4d1b104bc026b58c31eeb 100644 (file)
@@ -36,6 +36,9 @@ COPY ansible-playbook-wrapper /usr/local/bin/
 ONBUILD  RUN  DEBIAN_FRONTEND=noninteractive  apt-get update
 ONBUILD  WORKDIR /tmp
 ONBUILD  COPY  .  /tmp
+ONBUILD  RUN  \
+              echo "===> Diagnosis: host information..."  && \
+              ansible -c local -m setup all
 
 
 
index c0e400ff23ca76f04fcebd2214eb410ef582e81b..a0e6580164ac32913d7015095fa99c40686e9f22 100644 (file)
@@ -36,6 +36,9 @@ COPY ansible-playbook-wrapper /usr/local/bin/
 ONBUILD  RUN  DEBIAN_FRONTEND=noninteractive  apt-get update
 ONBUILD  WORKDIR /tmp
 ONBUILD  COPY  .  /tmp
+ONBUILD  RUN  \
+              echo "===> Diagnosis: host information..."  && \
+              ansible -c local -m setup all