From c7750a37c8331c9e467d4d3067562d80038e5a2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Sch=C3=B6ldstr=C3=B6m?= Date: Tue, 1 Mar 2016 10:01:53 -0500 Subject: [PATCH] install ansible from pip on centos --- tests/Dockerfile.centos-6 | 4 +++- tests/Dockerfile.centos-7 | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/Dockerfile.centos-6 b/tests/Dockerfile.centos-6 index 4a4e7b8..2a09cbf 100644 --- a/tests/Dockerfile.centos-6 +++ b/tests/Dockerfile.centos-6 @@ -3,8 +3,10 @@ FROM centos:6 # Install Ansible RUN yum -y update; yum clean all; RUN yum -y install epel-release -RUN yum -y install git ansible sudo +RUN yum -y install git gcc python-setuptools sudo RUN yum clean all +RUN easy_install pip +RUN pip install 'requests[security]' ansible # Disable requiretty RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers diff --git a/tests/Dockerfile.centos-7 b/tests/Dockerfile.centos-7 index 8aa0654..e407446 100644 --- a/tests/Dockerfile.centos-7 +++ b/tests/Dockerfile.centos-7 @@ -13,9 +13,10 @@ rm -f /lib/systemd/system/basic.target.wants/*; \ rm -f /lib/systemd/system/anaconda.target.wants/*; # Install Ansible -RUN yum -y install epel-release -RUN yum -y install git ansible sudo +RUN yum -y install git python-setuptools gcc sudo RUN yum clean all +RUN easy_install pip +RUN pip install ansible # Disable requiretty RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers