File tree Expand file tree Collapse file tree 3 files changed +66
-52
lines changed Expand file tree Collapse file tree 3 files changed +66
-52
lines changed Original file line number Diff line number Diff line change 3
3
4
4
sudo : required
5
5
env :
6
- # - >
7
- # DISTRIBUTION=ubuntu-upstart
8
- # DIST_VERSION=14.04
9
- # MONGODB_VERSION=3.2
10
- # - >
11
- # DISTRIBUTION=ubuntu-upstart
12
- # DIST_VERSION=14.04
13
- # MONGODB_VERSION=3.0
14
- # - >
15
- # DISTRIBUTION=ubuntu-upstart
16
- # DIST_VERSION=14.04
17
- # MONGODB_VERSION=2.6
18
- # - >
19
- # DISTRIBUTION=ubuntu-upstart
20
- # DIST_VERSION=12.04-builded
21
- # MONGODB_VERSION=3.2
22
- # - >
23
- # DISTRIBUTION=ubuntu-upstart
24
- # DIST_VERSION=12.04-builded
25
- # MONGODB_VERSION=3.0
26
- # - >
27
- # DISTRIBUTION=ubuntu-upstart
28
- # DIST_VERSION=12.04-builded
29
- # MONGODB_VERSION=2.6
30
- # - >
31
- # DISTRIBUTION=centos
32
- # DIST_VERSION=6
33
- # MONGODB_VERSION=2.6
34
- # - >
35
- # DISTRIBUTION=centos
36
- # DIST_VERSION=6
37
- # MONGODB_VERSION=3.0
38
- # - >
39
- # DISTRIBUTION=centos
40
- # DIST_VERSION=6
41
- # MONGODB_VERSION=3.2
42
- # - >
43
- # DISTRIBUTION=centos
44
- # DIST_VERSION=7
45
- # MONGODB_VERSION=2.6
46
- # - >
47
- # DISTRIBUTION=centos
48
- # DIST_VERSION=7
49
- # MONGODB_VERSION=3.0
50
- # - >
51
- # DISTRIBUTION=centos
52
- # DIST_VERSION=7
53
- # MONGODB_VERSION=3.2
6
+ - >
7
+ DISTRIBUTION=ubuntu-upstart
8
+ DIST_VERSION=14.04
9
+ MONGODB_VERSION=3.2
10
+ - >
11
+ DISTRIBUTION=ubuntu-upstart
12
+ DIST_VERSION=14.04
13
+ MONGODB_VERSION=3.0
14
+ - >
15
+ DISTRIBUTION=ubuntu-upstart
16
+ DIST_VERSION=14.04
17
+ MONGODB_VERSION=2.6
18
+ - >
19
+ DISTRIBUTION=ubuntu-upstart
20
+ DIST_VERSION=12.04-builded
21
+ MONGODB_VERSION=3.2
22
+ - >
23
+ DISTRIBUTION=ubuntu-upstart
24
+ DIST_VERSION=12.04-builded
25
+ MONGODB_VERSION=3.0
26
+ - >
27
+ DISTRIBUTION=ubuntu-upstart
28
+ DIST_VERSION=12.04-builded
29
+ MONGODB_VERSION=2.6
30
+ - >
31
+ DISTRIBUTION=centos
32
+ DIST_VERSION=6-builded
33
+ MONGODB_VERSION=2.6
34
+ - >
35
+ DISTRIBUTION=centos
36
+ DIST_VERSION=6-builded
37
+ MONGODB_VERSION=3.0
38
+ - >
39
+ DISTRIBUTION=centos
40
+ DIST_VERSION=6-builded
41
+ MONGODB_VERSION=3.2
42
+ - >
43
+ DISTRIBUTION=centos
44
+ DIST_VERSION=6-builded
45
+ MONGODB_VERSION=3.4
46
+ - >
47
+ DISTRIBUTION=centos
48
+ DIST_VERSION=7-builded
49
+ MONGODB_VERSION=2.6
50
+ - >
51
+ DISTRIBUTION=centos
52
+ DIST_VERSION=7-builded
53
+ MONGODB_VERSION=3.0
54
+ - >
55
+ DISTRIBUTION=centos
56
+ DIST_VERSION=7-builded
57
+ MONGODB_VERSION=3.2
54
58
- >
55
59
DISTRIBUTION=centos
56
60
DIST_VERSION=7-builded
Original file line number Diff line number Diff line change
1
+ FROM centos:6
2
+
3
+ # This is needed so that ansible managed to read "ansible_default_ipv4"
4
+ RUN yum install iproute -y
5
+
6
+ # This step is needed since standard CentOS docker image does not come with EPEL installed by default
7
+ RUN yum install epel-release -y
8
+
9
+ # we can has SSH
10
+ EXPOSE 22
11
+
12
+ # pepare for takeoff
13
+ CMD ["/usr/sbin/init"]
Original file line number Diff line number Diff line change 20
20
- hosts : " {{ target }}"
21
21
become : no
22
22
gather_facts : yes
23
- pre_tasks :
24
- - name : Show hostvars
25
- debug :
26
- var : " hostvars[inventory_hostname]['ansible_default_ipv4']"
23
+
27
24
roles :
28
25
- role : greendayonfire.mongodb
29
26
when : " 'mongo_master' in group_names"
You can’t perform that action at this time.
0 commit comments