File tree Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 53
53
# MONGODB_VERSION=3.2
54
54
- >
55
55
DISTRIBUTION=centos
56
- DIST_VERSION=7
56
+ DIST_VERSION=7-builded
57
57
MONGODB_VERSION=3.4
58
58
# - >
59
59
# distribution=ubuntu-upstart
Original file line number Diff line number Diff line change 20
20
- " {{ mongodb_package }}"
21
21
- numactl
22
22
23
- # This step is needed when running CentOS in Docker since the docker image does not come with EPEL installed by default
24
- - name : Install EPEL release
25
- yum :
26
- name : epel-release
27
- state : present
28
-
29
23
- name : Install PyMongo package
30
24
yum :
31
25
name : python-pymongo
Original file line number Diff line number Diff line change 27
27
when : mongodb_replication_replset and mongodb_replication_replset != ''
28
28
tags : [mongodb]
29
29
30
- - name : Check user admin is exists
30
+ - name : Check where admin user already exists
31
31
command : >
32
32
mongo --quiet -u {{ mongodb_user_admin_name }} \
33
33
-p {{ mongodb_user_admin_password }} --port {{ mongodb_net_port }} --eval 'db.version()' admin
34
-
35
34
register : mongodb_user_admin_check
36
35
changed_when : false
37
36
always_run : yes # side-effect free, so it can be run in check-mode as well
38
37
ignore_errors : true
39
38
when : ( mongodb_security_authorization == 'enabled'
40
39
and (not mongodb_replication_replset
41
40
or mongodb_replication_replset == '') )
42
- # no_log: true
41
+ no_log : true
43
42
tags : [mongodb]
44
43
45
44
- name : Include authorization configuration
Original file line number Diff line number Diff line change 1
1
FROM centos:7
2
2
3
3
# This is needed so that ansible managed to read "ansible_default_ipv4"
4
- RUN yum install iproute
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
5
8
6
9
# we can has SSH
7
10
EXPOSE 22
8
11
9
12
# pepare for takeoff
10
- CMD ["/usr/sbin/init"]
13
+ CMD ["/usr/sbin/init"]
You can’t perform that action at this time.
0 commit comments