From b6e2ffe362324038cab7aa8ebcec27d486c59d67 Mon Sep 17 00:00:00 2001 From: Sergei Antipov Date: Fri, 4 Mar 2016 01:22:38 +0600 Subject: [PATCH] Fixed variable conditional --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 77311f5..f16427f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,12 +8,12 @@ tags: [mongodb] - include: replication_init_auth.yml - when: ( mongodb_conf_replSet 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 + when: mongodb_conf_replSet != "" tags: [mongodb] - include: auth_initialization.yml