mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-12-22 19:10:19 +01:00
Added Centos 6 as target platform
This commit is contained in:
parent
5ca9ccc7c3
commit
7c41dd113e
2 changed files with 16 additions and 0 deletions
|
@ -1,5 +1,10 @@
|
||||||
sudo: required
|
sudo: required
|
||||||
env:
|
env:
|
||||||
|
- distribution: centos
|
||||||
|
version: 6
|
||||||
|
init: /sbin/init
|
||||||
|
run_opts: ""
|
||||||
|
container_id: $(mktemp)
|
||||||
- distribution: centos
|
- distribution: centos
|
||||||
version: 7
|
version: 7
|
||||||
init: /usr/lib/systemd/systemd
|
init: /usr/lib/systemd/systemd
|
||||||
|
|
11
tests/Dockerfile.centos-6
Normal file
11
tests/Dockerfile.centos-6
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
FROM centos:6
|
||||||
|
RUN yum -y update; yum clean all;
|
||||||
|
RUN yum -y install epel-release
|
||||||
|
RUN yum -y install git ansible sudo
|
||||||
|
RUN yum clean all
|
||||||
|
# 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
|
||||||
|
CMD ["/usr/sbin/init"]
|
||||||
|
|
Loading…
Reference in a new issue