From 5f101340de14e80012ccc3446054cc4c5b0c285f Mon Sep 17 00:00:00 2001 From: Anton Markelov Date: Wed, 3 Feb 2016 15:53:32 +0900 Subject: [PATCH] Resolve error in single-node installation --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index e517845..77311f5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,12 +8,12 @@ tags: [mongodb] - include: replication_init_auth.yml - when: ( mongodb_conf_replSet is defined and mongodb_conf_auth + when: ( mongodb_conf_replSet and mongodb_conf_auth and mongodb_master is defined and mongodb_master ) tags: [mongodb] - include: replication.yml - when: mongodb_conf_replSet is defined + when: mongodb_conf_replSet tags: [mongodb] - include: auth_initialization.yml