mirror of
https://github.com/status-im/ansible-role-mongodb.git
synced 2025-02-17 15:36:23 +00:00
template error in conditional fixed.
This commit is contained in:
parent
960842c5c4
commit
00e8a6e2d4
@ -29,14 +29,16 @@
|
||||
when: (mongodb_package == 'mongodb-org' and
|
||||
(mongodb_version is not defined
|
||||
or mongodb_repository[mongodb_major_version] is not defined
|
||||
or (mongodb_version != '3.6' and mongodb_version != '4.0'))
|
||||
or (mongodb_version != '3.6' and mongodb_version != '4.0'))
|
||||
and (ansible_distribution_release == 'stretch' and ansible_distribution_release == 'jessie'))
|
||||
|
||||
- name: Fail when used wrong mongodb_version variable with Ubuntu 18.04
|
||||
fail:
|
||||
msg: "mongodb_version variable should be '4.0' or else mongodb_package should be 'mongodb' for Ubuntu 18.04"
|
||||
when: (mongodb_package == 'mongodb-org' and mongodb_version != '4.0')
|
||||
and ansible_distribution_release == "bionic")
|
||||
when:
|
||||
- mongodb_package == 'mongodb-org'
|
||||
- mongodb_version != '4.0'
|
||||
- ansible_distribution_release == "bionic"
|
||||
|
||||
- name: Fail when used wrong mongodb_version variable
|
||||
fail:
|
||||
|
Loading…
x
Reference in New Issue
Block a user