I\'m trying to connect from one server to another. In fact I\'m trying to connect to my host OS (CoreOS) from within a docker container. I have set up a RSA key and it works lik
I found here that one of the reasons why ssh pipelining fails in docker is a bug when using overlay storage driver. Then a quick fix is to change directory of control path.
In /etc/ansible/ansible.cfg
add
[ssh_connection]
control_path_dir=/dev/shm/ansible_control_path
I had the same problem with ansible running in a docker container on a coreOS host. With the help of this thread, i could follow it up to the -O ControlPath
option. Switching off acceleration didn't help for me though. Changing the ssh_args=
line to empty string did the trick for me.
Turning off the accelerate option did the trick.
So in /etc/ansible/ansible.cfg
I added accelerate: false
and commented out the other accelerate options.
Seems to work. Thanks a lot Thomasleveil