Skip to content

Commit 63d073a

Browse files
author
Gustavo Muniz do Carmo
committed
add centos support
1 parent 82aaee4 commit 63d073a

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

defaults/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docker_compose_version: 1.22.0
1+
docker_compose_version: 1.25.0

meta/main.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ galaxy_info:
1111
versions:
1212
- bionic
1313
- xenial
14+
- name: CentOS
15+
versions:
16+
- 7
1417

1518
galaxy_tags:
1619
- docker
17-
- docker-compose
20+
- compose
1821

1922
dependencies:
2023
- role: codeyourinfra.docker

molecule/default/Dockerfile.j2

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ FROM {{ item.registry.url }}/{{ item.image }}
66
FROM {{ item.image }}
77
{% endif %}
88

9-
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
10-
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python2-dnf bash && dnf clean all; \
9+
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates python-apt aptitude && apt-get clean; \
10+
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python2 sudo python2-devel && dnf clean all; \
1111
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
1212
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \
1313
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \

molecule/default/molecule.yml

+8
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,16 @@ lint:
1010
platforms:
1111
- name: xenial
1212
image: ubuntu:xenial
13+
groups:
14+
- ubuntu
1315
- name: bionic
1416
image: ubuntu:bionic
17+
groups:
18+
- ubuntu
19+
- name: centos7
20+
image: centos:7
21+
groups:
22+
- centos
1523
provisioner:
1624
name: ansible
1725
lint:

0 commit comments

Comments
 (0)