From: William Yeh Date: Fri, 11 Dec 2015 03:52:38 +0000 (+0800) Subject: Fix: newline character for CentOS 6/7 series. X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=a8aa5c011bab589aef558768b5c91004d0c13fd0;p=github%2Ffretlink%2Fdocker-ansible.git Fix: newline character for CentOS 6/7 series. Credit: https://github.com/William-Yeh/docker-ansible/issues/8 --- diff --git a/centos6-onbuild/Dockerfile b/centos6-onbuild/Dockerfile index 972b5dc..ece25a1 100644 --- a/centos6-onbuild/Dockerfile +++ b/centos6-onbuild/Dockerfile @@ -40,7 +40,7 @@ RUN echo "===> Installing EPEL..." && \ \ echo "===> Adding hosts for convenience..." && \ mkdir -p /etc/ansible && \ - echo '[local]\nlocalhost\n' > /etc/ansible/hosts + echo -e '[local]\nlocalhost\n' > /etc/ansible/hosts COPY ansible-playbook-wrapper /usr/local/bin/ diff --git a/centos6/Dockerfile b/centos6/Dockerfile index 8d21a6b..ab34589 100644 --- a/centos6/Dockerfile +++ b/centos6/Dockerfile @@ -40,7 +40,7 @@ RUN echo "===> Installing EPEL..." && \ \ echo "===> Adding hosts for convenience..." && \ mkdir -p /etc/ansible && \ - echo '[local]\nlocalhost\n' > /etc/ansible/hosts + echo -e '[local]\nlocalhost\n' > /etc/ansible/hosts # default command: display Ansible version diff --git a/centos7-onbuild/Dockerfile b/centos7-onbuild/Dockerfile index c6d2694..6862eb9 100644 --- a/centos7-onbuild/Dockerfile +++ b/centos7-onbuild/Dockerfile @@ -40,7 +40,7 @@ RUN echo "===> Installing EPEL..." && \ \ echo "===> Adding hosts for convenience..." && \ mkdir -p /etc/ansible && \ - echo '[local]\nlocalhost\n' > /etc/ansible/hosts + echo -e '[local]\nlocalhost\n' > /etc/ansible/hosts COPY ansible-playbook-wrapper /usr/local/bin/ diff --git a/centos7/Dockerfile b/centos7/Dockerfile index 29e0f6f..c12c301 100644 --- a/centos7/Dockerfile +++ b/centos7/Dockerfile @@ -40,7 +40,7 @@ RUN echo "===> Installing EPEL..." && \ \ echo "===> Adding hosts for convenience..." && \ mkdir -p /etc/ansible && \ - echo '[local]\nlocalhost\n' > /etc/ansible/hosts + echo -e '[local]\nlocalhost\n' > /etc/ansible/hosts # default command: display Ansible version