# Database takes 40 mins to start, replication process needs to manually start after

**URL:** <https://forum.ansible.com/t/database-takes-40-mins-to-start-replication-process-needs-to-manually-start-after/12027>\
**Category:** Ansible Project\
**Created:** [October 25, 2012, 5:52pm UTC](https://forum.ansible.com/t/database-takes-40-mins-to-start-replication-process-needs-to-manually-start-after/12027 "2012-10-25T17:52:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![James8](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@James8](https://forum.ansible.com/u/James8)\
**Post date:** [October 25, 2012, 5:52pm UTC](https://forum.ansible.com/t/database-takes-40-mins-to-start-replication-process-needs-to-manually-start-after/12027/1 "2012-10-25T17:52:28Z")

</div>

Hi,  
Today I setup a playbook to upgrade our CitrusLeaf NoSQL database  
server. The database takes between 25 and 50 minutes to start based  
on the particular cluster and hardware. When I start the server  
manually the way I know the server is ready is to tail the log for the  
word cake i.e. tail -f /var/log/citrusleaf.log | grep -i cake. There  
are other commands I can run to see if the server has started, but are  
generally run for other information.

Is there away I can get ansible to recognize that the process has  
completed starting up? I would like to have the playbook complete  
other tasks after the database has started, and upgrade the next host  
in the cluster.

Thanks,  
James

---

<div class="post-metadata">

**Author:** ![Tim\_Bielawa](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@Tim\_Bielawa](https://forum.ansible.com/u/Tim_Bielawa)\
**Post date:** [October 25, 2012, 7:27pm UTC](https://forum.ansible.com/t/database-takes-40-mins-to-start-replication-process-needs-to-manually-start-after/12027/2 "2012-10-25T19:27:08Z")

</div>

Looked at wait\_for?

[http://ansible.cc/docs/modules.html#wait-for](http://ansible.cc/docs/modules.html#wait-for)

polls until a port is open

---

<div class="post-metadata">

**Author:** ![James8](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@James8](https://forum.ansible.com/u/James8)\
**Post date:** [October 26, 2012, 7:18pm UTC](https://forum.ansible.com/t/database-takes-40-mins-to-start-replication-process-needs-to-manually-start-after/12027/3 "2012-10-26T19:18:15Z")

</div>

Thanks! totally forgot about this module and when it was announced I  
thought I'll use that.

Thanks,  
James
