Force reconnect?

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?

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

Works great, thanks.