Just check the output of -vvvvv and ran the same command in a shell:

dick.visser@MacBookAir-DIck:~$ ssh -C -o ControlMaster=auto -o
ControlPersist=60s -o KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o ConnectTimeout=20 -o
ControlPath=/Users/dick.visser/.ansible/cp/ansible-ssh-%h-%p-%r
imapsync
unix_listener: 
"/Users/dick.visser/.ansible/cp/ansible-ssh-2001:610:148:f00d:20c:29ff:fe14:ccfe-22-visser.yQ7UwntkXwvGTUmk"
too long for Unix domain socket

After using the hint from
http://docs.ansible.com/ansible/intro_configuration.html#control-path
things started working.

Dick



On 7 February 2017 at 19:27, Kai Stian Olstad
<[email protected]> wrote:
> On 07. feb. 2017 10:38, Dick Visser wrote:
>>
>> I'm trying to set up a quick test host and have added this entry in my
>> ~/.ssh/config:
>>
>> # Test host
>> Host imapsync
>>   Hostname 2001:610:148:f00d:20c:29ff:fe14:ccfe
>>
>>
>> Just issuing "ssh imapsync" works fine.
>>
>> I have this corresponding in my ansible inventory:
>>
>> # test host
>> imapsync
>>
>> But when I try to run "ansible imapsync -m setup", I get:
>>
>>  "SSH Error: data could not be sent to the remote host. Make sure this
>> host can be reached over ssh".
>
>
> Just for fun I tested this, it work for me.
> I'm running Ansible 2.1.2 at the moment.
>
> --
> Kai Stian Olstad
>
> --
> 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/c5e945dc-4abf-c3f8-d764-e8240d9c12d8%40olstad.com.
>
> For more options, visit https://groups.google.com/d/optout.



-- 
Dick Visser
Sr. System & Network Engineer
GÉANT

Want to join us? We're hiring: https://www.geant.org/jobs

-- 
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/CAEQQDNnGSrN2NiRK_UgxB-%2BUm_KHf7cjQi3b8nEm_9L_0GV85Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to