mirror of
https://github.com/status-im/ansible-role-mongodb.git
synced 2025-02-17 15:36:23 +00:00
YWB-762: Adding a mongodb to the infrastructure
- Fixed wait_for args
This commit is contained in:
parent
df90644552
commit
8cbc617dc9
@ -7,7 +7,7 @@
|
|||||||
when: mongodb_manage_service
|
when: mongodb_manage_service
|
||||||
|
|
||||||
- name: wait MongoDB port is listening
|
- 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
|
- name: get pid of mongodb for non daemon mode
|
||||||
shell: "pidof mongod"
|
shell: "pidof mongod"
|
||||||
@ -68,7 +68,7 @@
|
|||||||
when: mongodb_manage_service
|
when: mongodb_manage_service
|
||||||
|
|
||||||
- name: wait MongoDB port is listening
|
- 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
|
- name: stop mongodb if was not started
|
||||||
shell: "kill {{ pidof_mongod.stdout }}"
|
shell: "kill {{ pidof_mongod.stdout }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user