]> git.immae.eu Git - github/fretlink/docker-ansible.git/blobdiff - centos6-onbuild/Dockerfile
Add: support for Ubuntu 16.04 LTS (Xenial).
[github/fretlink/docker-ansible.git] / centos6-onbuild / Dockerfile
index 6c94671f198978a1e2fa6e6c1c092a73fb1e08ae..a520a0f078ad1bcefcc31795e65f415e693fdf4a 100644 (file)
@@ -26,12 +26,13 @@ RUN echo "===> Installing EPEL..."        && \
     \
     \
     echo "===> Adding Ansible's prerequisites..."  && \
-    yum -y install gcc python-devel python-pip     && \
+    yum -y install gcc python-devel python-pip  \
+                       libffi-devel openssl-devel  && \
     pip install --upgrade pip                      && \                 
     \
     \
     echo "===> Installing Ansible..."     && \
-    pip install ansible                   && \
+    pip install --upgrade ansible         && \
     \
     \
     echo "===> Disabling sudo 'requiretty' setting..."    && \
@@ -39,13 +40,14 @@ RUN echo "===> Installing EPEL..."        && \
     \
     \
     echo "===> Removing unused YUM resources..."             && \
-    yum -y remove epel-release gcc python-devel python-pip   && \
+    yum -y remove epel-release gcc python-devel python-pip \
+                  libffi-devel openssl-devel  || true        && \
     yum clean all                                            && \
     \
     \
     echo "===> Adding hosts for convenience..."    && \
     mkdir -p /etc/ansible                          && \
-    echo -e '[local]\nlocalhost\n' > /etc/ansible/hosts
+    echo 'localhost' > /etc/ansible/hosts
 
 
 COPY ansible-playbook-wrapper /usr/local/bin/