File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 14
14
priority : " {{ item.priority|default(1.0) }}"
15
15
when : mongodb_conf_auth and mongodb_replication_params is defined
16
16
with_items :
17
- - " {{ mongodb_replication_params }}"
17
+ - " {{ mongodb_replication_params|default([]) }}"
18
18
19
19
- name : Replication configuration without auth
20
20
mongodb_replication :
28
28
priority : " {{ item.priority|default(1.0) }}"
29
29
when : not mongodb_conf_auth and mongodb_replication_params is defined
30
30
with_items :
31
- - " {{ mongodb_replication_params }}"
31
+ - " {{ mongodb_replication_params|default([]) }}"
Original file line number Diff line number Diff line change 11
11
host_type : " {{ item.host_type|default('replica') }}"
12
12
hidden : " {{ item.hidden|default(false) }}"
13
13
priority : " {{ item.priority|default(1.0) }}"
14
+ when : mongodb_replication_params is defined
14
15
with_items :
15
- - " {{ mongodb_replication_params }}"
16
+ - " {{ mongodb_replication_params|default([]) }}"
16
17
register : mongodb_replica_init
17
18
ignore_errors : true
18
19
31
32
host_type : " {{ item.host_type|default('replica') }}"
32
33
hidden : " {{ item.hidden|default(false) }}"
33
34
priority : " {{ item.priority|default(1.0) }}"
35
+ when : mongodb_replication_params is defined
34
36
with_items :
35
- - " {{ mongodb_replication_params }}"
37
+ - " {{ mongodb_replication_params|default([]) }}"
36
38
when : mongodb_replica_init|failed
You can’t perform that action at this time.
0 commit comments