]> git.immae.eu Git - github/fretlink/docker-ansible.git/commitdiff
Fix: newline character for CentOS 6/7 series.
authorWilliam Yeh <william.pjyeh@gmail.com>
Fri, 11 Dec 2015 03:52:38 +0000 (11:52 +0800)
committerWilliam Yeh <william.pjyeh@gmail.com>
Fri, 11 Dec 2015 03:52:38 +0000 (11:52 +0800)
Credit: https://github.com/William-Yeh/docker-ansible/issues/8

centos6-onbuild/Dockerfile
centos6/Dockerfile
centos7-onbuild/Dockerfile
centos7/Dockerfile

index 972b5dc11ef4e03e6f4fa9699f471690bcdc4351..ece25a1632d1d450ad711343f3743d3b8d25dba5 100644 (file)
@@ -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/
index 8d21a6bf1b488898fabd527796e7ed2a9fa0f95e..ab34589bb44437350d5e0056893dbf715826592e 100644 (file)
@@ -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
index c6d2694de4472a2a38c1219ebc2f6cf486e8f40b..6862eb93d0f5d21534b8bc442523b6ad8c71d92f 100644 (file)
@@ -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/
index 29e0f6f9b8d03f3fcb777fca7d0b0c222be05a16..c12c30107e2b11c1959b2a5de0b7d592be9e7c0a 100644 (file)
@@ -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