Skip to content

Commit 8cbc617

Browse files
author
Mohamed Hazem
committed
YWB-762: Adding a mongodb to the infrastructure
- Fixed wait_for args
1 parent df90644 commit 8cbc617

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/auth_initialization.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
when: mongodb_manage_service
88

99
- name: wait MongoDB port is listening
10-
wait_for: host="{{ mongodb_conf_bind_ip }}"port="{{ mongodb_conf_port }}" delay=5 state=started
10+
wait_for: host=127.0.0.1 port="{{ mongodb_conf_port }}" delay=5 state=started
1111

1212
- name: get pid of mongodb for non daemon mode
1313
shell: "pidof mongod"
@@ -68,7 +68,7 @@
6868
when: mongodb_manage_service
6969

7070
- name: wait MongoDB port is listening
71-
wait_for: host="{{ mongodb_conf_bind_ip }}"port="{{ mongodb_conf_port }}" delay=5 state=started
71+
wait_for: host="{{ mongodb_conf_bind_ip }}" port="{{ mongodb_conf_port }}" delay=5 state=started
7272

7373
- name: stop mongodb if was not started
7474
shell: "kill {{ pidof_mongod.stdout }}"

0 commit comments

Comments
 (0)