# Is there an Ansible task timeout?

**URL:** <https://forum.ansible.com/t/is-there-an-ansible-task-timeout/19361>\
**Category:** Ansible Project\
**Created:** [September 25, 2015, 7:06pm UTC](https://forum.ansible.com/t/is-there-an-ansible-task-timeout/19361 "2015-09-25T19:06:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neil\_Hooey](https://avatars.discourse-cdn.com/v4/letter/n/ee59a6/32.png) [@Neil\_Hooey](https://forum.ansible.com/u/Neil_Hooey)\
**Post date:** [September 25, 2015, 7:06pm UTC](https://forum.ansible.com/t/is-there-an-ansible-task-timeout/19361/1 "2015-09-25T19:06:36Z")

</div>

Is there any way to set a timeout for how long a task can take?

When I run an Ansible playbook on hundreds of nodes with concurrency enabled, tasks get stuck on the slowest node. It’s hard to find out which node is going slow because the node’s IP address will only get printed when the task succeeds or fails, but not if it takes forever.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [September 26, 2015, 5:16pm UTC](https://forum.ansible.com/t/is-there-an-ansible-task-timeout/19361/2 "2015-09-26T17:16:30Z")

</div>

with async you can specify a timeout.
