mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-03 16:50:18 +01:00
12 lines
354 B
Text
12 lines
354 B
Text
|
FROM centos:6
|
||
|
|
||
|
# Install Ansible
|
||
|
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
|
||
|
RUN yum install -y ansible
|
||
|
|
||
|
# Disable requiretty
|
||
|
RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
|
||
|
|
||
|
# Install Ansible inventory file
|
||
|
RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
|