Skip to content

Commit 00e8a6e

Browse files
committed
template error in conditional fixed.
1 parent 960842c commit 00e8a6e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tasks/install.debian.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,16 @@
2929
when: (mongodb_package == 'mongodb-org' and
3030
(mongodb_version is not defined
3131
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'))
3333
and (ansible_distribution_release == 'stretch' and ansible_distribution_release == 'jessie'))
3434

3535
- name: Fail when used wrong mongodb_version variable with Ubuntu 18.04
3636
fail:
3737
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')
39-
and ansible_distribution_release == "bionic")
38+
when:
39+
- mongodb_package == 'mongodb-org'
40+
- mongodb_version != '4.0'
41+
- ansible_distribution_release == "bionic"
4042

4143
- name: Fail when used wrong mongodb_version variable
4244
fail:

0 commit comments

Comments
 (0)