# Wait function between Roles

**URL:** <https://forum.ansible.com/t/wait-function-between-roles/21479>\
**Category:** Ansible Project\
**Created:** [May 18, 2016, 2:45pm UTC](https://forum.ansible.com/t/wait-function-between-roles/21479 "2016-05-18T14:45:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Matthews](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Mark\_Matthews](https://forum.ansible.com/u/Mark_Matthews)\
**Post date:** [May 18, 2016, 2:45pm UTC](https://forum.ansible.com/t/wait-function-between-roles/21479/1 "2016-05-18T14:45:16Z")

</div>

Hi

Not sure if you able to assist with this question, but is it at all possible to setup a ‘wait’ function between roles in a playbook?

So if I have the following playbook:

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [May 18, 2016, 2:58pm UTC](https://forum.ansible.com/t/wait-function-between-roles/21479/2 "2016-05-18T14:58:54Z")

</div>

Hi Mark

you can add a pause task - see [http://docs.ansible.com/ansible/pause\_module.html](http://docs.ansible.com/ansible/pause_module.html)

It might suit your needs in this case to put it into a role so you can pass in an appropriate pause

All the best,

Jon
