Thanks for reporting this.
You could disable the ssh client validation to temporarily avoid the problem:
# group_vars/all/main.yml
validate_ssh: false
I installed Ansible 2.2.0.0 and Vagrant 1.8.5 and was unable to reproduce this on my macOS 10.11.6.
OS version. What version is your OS?
OpenSSH version. Could you share your SSH client version?
Run ssh -V on your mac. Here’s mine:
$ ssh -V
OpenSSH_6.9p1, LibreSSL 2.1.8
Looks like the -G option was added in version 6.8 (released Mar 18, 2015):
- ssh(1): Add a -G option to ssh that causes it to parse its
configuration and dump the result to stdout, similar to “sshd -T”.
SSH -G. Could you test the -G option generally on your mac by running this?
$ ssh -G example.com
hostname example.com
port 22
addressfamily any
batchmode no
canonicalizefallbacklocal yes
...
+ 65 more lines of settings
No need to print all the settings it should output, unless it shows an error that looks helpful.
Also try ssh -ttG example.com to see if the forced tty allocation (-tt) yields an error.