playbook hangs indefinitely when remote host goes down in-between execution

Hi All,

I have Issue with playbook getting stuck/hang indefinitely, if remote host goes due to kernel panic during the execution. I have tried using async poll for every task but still run into the Issue. When a server goes into kernel panic, since the ssh connection is still open Ansible keeps waiting for the response forever.

My expectation is Ansible should exclude the host and move forward with remaining hosts after a specific timeout. Is there a way this can be achieved ?