aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorWilliam Yeh <william.pjyeh@gmail.com>2015-12-11 11:52:38 +0800
committerWilliam Yeh <william.pjyeh@gmail.com>2015-12-11 11:52:38 +0800
commita8aa5c011bab589aef558768b5c91004d0c13fd0 (patch)
treef6a52387adce159da056c34e495bb4e0617540b3
parentffe10e8179d088334ea1aab4acfef21886989e98 (diff)
downloaddocker-ansible-a8aa5c011bab589aef558768b5c91004d0c13fd0.tar.gz
docker-ansible-a8aa5c011bab589aef558768b5c91004d0c13fd0.tar.zst
docker-ansible-a8aa5c011bab589aef558768b5c91004d0c13fd0.zip
Fix: newline character for CentOS 6/7 series.
Credit: https://github.com/William-Yeh/docker-ansible/issues/8
-rw-r--r--centos6-onbuild/Dockerfile2
-rw-r--r--centos6/Dockerfile2
-rw-r--r--centos7-onbuild/Dockerfile2
-rw-r--r--centos7/Dockerfile2
4 files changed, 4 insertions, 4 deletions
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..." && \
40 \ 40 \
41 echo "===> Adding hosts for convenience..." && \ 41 echo "===> Adding hosts for convenience..." && \
42 mkdir -p /etc/ansible && \ 42 mkdir -p /etc/ansible && \
43 echo '[local]\nlocalhost\n' > /etc/ansible/hosts 43 echo -e '[local]\nlocalhost\n' > /etc/ansible/hosts
44 44
45 45
46COPY ansible-playbook-wrapper /usr/local/bin/ 46COPY 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..." && \
40 \ 40 \
41 echo "===> Adding hosts for convenience..." && \ 41 echo "===> Adding hosts for convenience..." && \
42 mkdir -p /etc/ansible && \ 42 mkdir -p /etc/ansible && \
43 echo '[local]\nlocalhost\n' > /etc/ansible/hosts 43 echo -e '[local]\nlocalhost\n' > /etc/ansible/hosts
44 44
45 45
46# default command: display Ansible version 46# 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..." && \
40 \ 40 \
41 echo "===> Adding hosts for convenience..." && \ 41 echo "===> Adding hosts for convenience..." && \
42 mkdir -p /etc/ansible && \ 42 mkdir -p /etc/ansible && \
43 echo '[local]\nlocalhost\n' > /etc/ansible/hosts 43 echo -e '[local]\nlocalhost\n' > /etc/ansible/hosts
44 44
45 45
46COPY ansible-playbook-wrapper /usr/local/bin/ 46COPY 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..." && \
40 \ 40 \
41 echo "===> Adding hosts for convenience..." && \ 41 echo "===> Adding hosts for convenience..." && \
42 mkdir -p /etc/ansible && \ 42 mkdir -p /etc/ansible && \
43 echo '[local]\nlocalhost\n' > /etc/ansible/hosts 43 echo -e '[local]\nlocalhost\n' > /etc/ansible/hosts
44 44
45 45
46# default command: display Ansible version 46# default command: display Ansible version