Skip to content

Commit

Permalink
install ansible from pip on centos
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Mar 1, 2016
1 parent aa24c83 commit a901aba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/Dockerfile.centos-6
Original file line number Diff line number Diff line change
Expand Up @@ -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 python-setuptools 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
Expand Down
5 changes: 3 additions & 2 deletions tests/Dockerfile.centos-7
Original file line number Diff line number Diff line change
Expand Up @@ -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 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
Expand Down

0 comments on commit a901aba

Please sign in to comment.