We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8fc34e7 + 8a68162 commit 4884874Copy full SHA for 4884874
tasks/auth_initialization.yml
@@ -7,7 +7,7 @@
7
when: mongodb_manage_service
8
9
- name: wait MongoDB port is listening
10
- 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
11
12
- name: get pid of mongodb for non daemon mode
13
shell: "pidof mongod"
@@ -68,7 +68,7 @@
68
69
70
71
+ wait_for: host="{{ mongodb_conf_bind_ip }}" port="{{ mongodb_conf_port }}" delay=5 state=started
72
73
- name: stop mongodb if was not started
74
shell: "kill {{ pidof_mongod.stdout }}"
0 commit comments