How to kill/restart ssh remote connection

Hi all,

Could anyone please share some knowledge on how to kill/restart ssh from remote connection in Ansible?

Basically, I need to re-login in order the changes to take affect but it seems that Ansible has shared connection for ssh.

any help much appreciated

cheers

- meta: reset_connection

Though if you are not using the default control path you might find
issues, which i'm in the middle of fixing.