Skip to content

Commit

Permalink
Merge pull request #40 from flyingelephantlab/master
Browse files Browse the repository at this point in the history
Fixes for the wait_for issue
  • Loading branch information
UnderGreen committed Nov 23, 2015
2 parents 8fc34e7 + 8a68162 commit 4884874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/auth_initialization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 }}"
Expand Down

0 comments on commit 4884874

Please sign in to comment.