From 8cbc617dc934aa3ee27b14b15cf92b8c133b116d Mon Sep 17 00:00:00 2001 From: Mohamed Hazem Date: Mon, 23 Nov 2015 18:06:21 +0200 Subject: [PATCH] YWB-762: Adding a mongodb to the infrastructure - Fixed wait_for args --- tasks/auth_initialization.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/auth_initialization.yml b/tasks/auth_initialization.yml index 46dab52..1597741 100644 --- a/tasks/auth_initialization.yml +++ b/tasks/auth_initialization.yml @@ -7,7 +7,7 @@ when: mongodb_manage_service - name: wait MongoDB port is listening - wait_for: host="{{ mongodb_conf_bind_ip }}"port="{{ mongodb_conf_port }}" delay=5 state=started + wait_for: host=127.0.0.1 port="{{ mongodb_conf_port }}" delay=5 state=started - name: get pid of mongodb for non daemon mode shell: "pidof mongod" @@ -68,7 +68,7 @@ when: mongodb_manage_service - name: wait MongoDB port is listening - wait_for: host="{{ mongodb_conf_bind_ip }}"port="{{ mongodb_conf_port }}" delay=5 state=started + wait_for: host="{{ mongodb_conf_bind_ip }}" port="{{ mongodb_conf_port }}" delay=5 state=started - name: stop mongodb if was not started shell: "kill {{ pidof_mongod.stdout }}"