File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 11
11
DISTRIBUTION=ubuntu
12
12
DIST_VERSION=18_04-builded
13
13
MONGODB_VERSION=4.0
14
- MONGODB_PACKAGE=mongodb
14
+ MONGODB_PACKAGE=mongodb-org
15
15
- >
16
16
DISTRIBUTION=ubuntu
17
17
DIST_VERSION=18_04-builded
49
49
DISTRIBUTION=debian
50
50
DIST_VERSION=9-builded
51
51
MONGODB_VERSION=3.6
52
- MONGODB_PACKAGE=mongodb
52
+ MONGODB_PACKAGE=mongodb-org
53
53
- >
54
54
DISTRIBUTION=debian
55
55
DIST_VERSION=8-builded
Original file line number Diff line number Diff line change 29
29
when : (mongodb_package == 'mongodb-org' and
30
30
(mongodb_version is not defined
31
31
or mongodb_repository[mongodb_major_version] is not defined
32
- or (mongodb_version != '3.6' and mongodb_version != '4.0'))
32
+ or (mongodb_version != '3.6' and mongodb_version != '4.0'))
33
33
and (ansible_distribution_release == 'stretch' and ansible_distribution_release == 'jessie'))
34
34
35
35
- name : Fail when used wrong mongodb_version variable with Ubuntu 18.04
36
36
fail :
37
- msg : " mongodb_version variable should be '3.6' or '4.0' and mongodb_package should be 'mongodb' for Ubuntu 18.04"
38
- when : ((mongodb_package == 'mongodb-org' or (mongodb_version != '3.6' and mongodb_version != '4.0'))
39
- and ansible_distribution_release == "bionic")
37
+ msg : " mongodb_version variable should be '4.0' or else mongodb_package should be 'mongodb' for Ubuntu 18.04"
38
+ when :
39
+ - mongodb_package == 'mongodb-org'
40
+ - mongodb_version != '4.0'
41
+ - ansible_distribution_release == "bionic"
40
42
41
43
- name : Fail when used wrong mongodb_version variable
42
44
fail :
Original file line number Diff line number Diff line change 1
1
---
2
2
3
- image_name : " ubuntu-upstart:14 .04"
3
+ image_name : " ubuntu-upstart:18 .04"
4
4
mongodb_package : mongodb-org
5
- mongodb_version : " 3.6 "
5
+ mongodb_version : " 4.0 "
6
6
mongodb_storage_dbpath : /var/lib/mongodb
7
7
mongodb_net_bindip : 0.0.0.0
8
8
mongodb_login_host : " {{ hostvars[groups['mongo_master'][0]].ansible_default_ipv4.address }}"
You can’t perform that action at this time.
0 commit comments