Commit c5bd80e6 authored by bow's avatar bow
Browse files

Add task to ensure MongoDB is running in Ansible

parent dd2f53d2
......@@ -28,3 +28,6 @@
- name: restart mongodb if config changed
service: name={{ mongodb_daemon_name }} state=restarted
when: mongodb_conf|changed
- name: ensure mongodb is running
wait_for: host={{ mongodb_conf_bind_ip }} port={{ mongodb_conf_port }}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment