Skip to content

Commit 960842c

Browse files
committed
mongodb 3.6 is not available on mongodb repo. It must be installed from ubuntu repo with package name mongodb.
1 parent 6e9eab4 commit 960842c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
DISTRIBUTION=ubuntu
1717
DIST_VERSION=18_04-builded
1818
MONGODB_VERSION=3.6
19-
MONGODB_PACKAGE=mongodb-org
19+
MONGODB_PACKAGE=mongodb
2020
- >
2121
DISTRIBUTION=ubuntu
2222
DIST_VERSION=16_04-builded

tasks/install.debian.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434

3535
- name: Fail when used wrong mongodb_version variable with Ubuntu 18.04
3636
fail:
37-
msg: "mongodb_version variable should be '3.6' or '4.0' and mongodb_package should be 'mongodb-org' for Ubuntu 18.04"
38-
when: ((mongodb_package != 'mongodb-org' or (mongodb_version != '3.6' and mongodb_version != '4.0'))
37+
msg: "mongodb_version variable should be '4.0' or else mongodb_package should be 'mongodb' for Ubuntu 18.04"
38+
when: (mongodb_package == 'mongodb-org' and mongodb_version != '4.0')
3939
and ansible_distribution_release == "bionic")
4040

4141
- name: Fail when used wrong mongodb_version variable

0 commit comments

Comments
 (0)