Here is an article I came across that solves an issue I had:

https://dmsimard.com/2016/03/15/changing-the-ssh-port-with-ansible

On Fri, Mar 18, 2016, 4:26 PM Brian Coca <[email protected]> wrote:

> you can run a command to kill the connection locally:
>
> ssh -O stop <hostname>-o
> ControlPath=~/.ansible/cp/ansible-ssh-<hostname>-22-<user>
>
>
> ----------
> Brian Coca
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CACVha7dE12jy%3D6HsmU5intpa8nZ2dYvj16CPLg4TyBBpP9kf8A%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CACVha7dE12jy%3D6HsmU5intpa8nZ2dYvj16CPLg4TyBBpP9kf8A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAKsMCETiyvo1fMuY2oPr2vGjNut0ogBNQ2eq4qDs-Vo5dMaytg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to