# Force reconnect?

**URL:** <https://forum.ansible.com/t/force-reconnect/12081>\
**Category:** Ansible Project\
**Created:** [November 13, 2012, 3:18pm UTC](https://forum.ansible.com/t/force-reconnect/12081 "2012-11-13T15:18:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giuliano\_Barberi](https://avatars.discourse-cdn.com/v4/letter/g/edb3f5/32.png) [@Giuliano\_Barberi](https://forum.ansible.com/u/Giuliano_Barberi)\
**Post date:** [November 13, 2012, 3:18pm UTC](https://forum.ansible.com/t/force-reconnect/12081/1 "2012-11-13T15:18:03Z")

</div>

Hey guys I’m trying to configure firewall w/ ansible but the problem is that when I do “ufw enable” the SSH drops while the rules are being flushed which causes Ansible to hang. Is there anyway I can make it reconnect immediately or is there a workaround?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [November 13, 2012, 3:24pm UTC](https://forum.ansible.com/t/force-reconnect/12081/2 "2012-11-13T15:24:25Z")

</div>

You may wish to try making that one task async with a long poll interval.

---

<div class="post-metadata">

**Author:** ![Giuliano\_Barberi](https://avatars.discourse-cdn.com/v4/letter/g/edb3f5/32.png) [@Giuliano\_Barberi](https://forum.ansible.com/u/Giuliano_Barberi)\
**Post date:** [November 13, 2012, 3:30pm UTC](https://forum.ansible.com/t/force-reconnect/12081/3 "2012-11-13T15:30:00Z")

</div>

Works great, thanks.
