From: William Yeh Date: Fri, 15 May 2015 01:09:13 +0000 (+0800) Subject: Add: diagnosis info (ansible_* variables) in *-onbuild images. X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=d5790ee49c738ef715a208377908afc8ea0e8e65;p=github%2Ffretlink%2Fdocker-ansible.git Add: diagnosis info (ansible_* variables) in *-onbuild images. --- diff --git a/centos6-onbuild/Dockerfile b/centos6-onbuild/Dockerfile index cb96493..85f1e18 100644 --- a/centos6-onbuild/Dockerfile +++ b/centos6-onbuild/Dockerfile @@ -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 diff --git a/centos7-onbuild/Dockerfile b/centos7-onbuild/Dockerfile index d668cba..64233d8 100644 --- a/centos7-onbuild/Dockerfile +++ b/centos7-onbuild/Dockerfile @@ -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 diff --git a/debian7-onbuild/Dockerfile b/debian7-onbuild/Dockerfile index 1620990..45bbd7f 100644 --- a/debian7-onbuild/Dockerfile +++ b/debian7-onbuild/Dockerfile @@ -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 diff --git a/debian8-onbuild/Dockerfile b/debian8-onbuild/Dockerfile index 04eadb5..5db6cdf 100644 --- a/debian8-onbuild/Dockerfile +++ b/debian8-onbuild/Dockerfile @@ -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 diff --git a/ubuntu12.04-onbuild/Dockerfile b/ubuntu12.04-onbuild/Dockerfile index f7a5aa0..2fc7820 100644 --- a/ubuntu12.04-onbuild/Dockerfile +++ b/ubuntu12.04-onbuild/Dockerfile @@ -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 diff --git a/ubuntu14.04-onbuild/Dockerfile b/ubuntu14.04-onbuild/Dockerfile index c0e400f..a0e6580 100644 --- a/ubuntu14.04-onbuild/Dockerfile +++ b/ubuntu14.04-onbuild/Dockerfile @@ -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