Skip to content

Commit 3b22a28

Browse files
committed
Mongodb package name fix for ubuntu 18.04
- mongodb package name for 18.04 is 'mongodb-org' - package name 'mongodb' will install mongodb from ubuntu repo which is 3.6 currently and is not a recommended way.
1 parent 4530905 commit 3b22a28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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' 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 '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'))
3939
and ansible_distribution_release == "bionic")
4040

4141
- name: Fail when used wrong mongodb_version variable

0 commit comments

Comments
 (0)