fixed `mongodb_replication_params is undefined` error (closes #37)

This commit is contained in:
rapkin 2016-01-29 14:17:16 +02:00
parent 61b008311c
commit 42487b9f46
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@
host_type: "{{ item.host_type|default('replica') }}" host_type: "{{ item.host_type|default('replica') }}"
hidden: "{{ item.hidden|default(false) }}" hidden: "{{ item.hidden|default(false) }}"
priority: "{{ item.priority|default(1.0) }}" priority: "{{ item.priority|default(1.0) }}"
when: mongodb_replication_params is defined
with_items: with_items:
- "{{ mongodb_replication_params }}" - "{{ mongodb_replication_params }}"
register: mongodb_replica_init register: mongodb_replica_init
@ -31,6 +32,7 @@
host_type: "{{ item.host_type|default('replica') }}" host_type: "{{ item.host_type|default('replica') }}"
hidden: "{{ item.hidden|default(false) }}" hidden: "{{ item.hidden|default(false) }}"
priority: "{{ item.priority|default(1.0) }}" priority: "{{ item.priority|default(1.0) }}"
when: mongodb_replication_params is defined
with_items: with_items:
- "{{ mongodb_replication_params }}" - "{{ mongodb_replication_params }}"
when: mongodb_replica_init|failed when: mongodb_replica_init|failed