I'm running ansible on Ubuntu 14.04.2 LTS running OpenSSH_6.6.1p1 inside of a Docker container with a CoreOS host, and running this command as root:
ansible key_tleyden -i inventory -m ping -u centos -vvvv
and seeing this error:
After quite a lot of digging (I wish ansible gave a clearer error message here), it seemed to be related to SSH ControlPersist, so I tried running this command (also as root):
and with that I get the error:
Control socket connect(/root/.ansible/cp/ansible-ssh-10.119.181.141-22-centos): Connection refused
I can see the domain socket here:
srw------- 1 root root 0 Jun 10 18:11 ansible-ssh-ec2-54-157-151-133.compute-1.amazonaws.com-22-centos
but am unclear on why ssh can't seem to use it.
If I change my ansible.cfg to disable the ControlPersist settings via:
Then the ansible errors completely go away.