Dockerfile.centos-6 380 B

123456789101112131415
  1. FROM centos:6
  2. # Install Ansible
  3. RUN yum -y update; yum clean all;
  4. RUN yum -y install epel-release
  5. RUN yum -y install git ansible sudo
  6. RUN yum clean all
  7. # Disable requiretty
  8. RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
  9. # Install Ansible inventory file
  10. RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
  11. CMD ["/usr/sbin/init"]