mirror of
https://github.com/status-im/ansible-role-mongodb.git
synced 2025-02-25 03:05:30 +00:00
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.
This commit is contained in:
parent
45309059e9
commit
3b22a28d39
@ -34,8 +34,8 @@
|
||||
|
||||
- name: Fail when used wrong mongodb_version variable with Ubuntu 18.04
|
||||
fail:
|
||||
msg: "mongodb_version variable should be '3.6' or '4.0' and mongodb_package should be 'mongodb' for Ubuntu 18.04"
|
||||
when: ((mongodb_package == 'mongodb-org' or (mongodb_version != '3.6' and mongodb_version != '4.0'))
|
||||
msg: "mongodb_version variable should be '3.6' or '4.0' and mongodb_package should be 'mongodb-org' for Ubuntu 18.04"
|
||||
when: ((mongodb_package != 'mongodb-org' or (mongodb_version != '3.6' and mongodb_version != '4.0'))
|
||||
and ansible_distribution_release == "bionic")
|
||||
|
||||
- name: Fail when used wrong mongodb_version variable
|
||||
|
Loading…
x
Reference in New Issue
Block a user