Ansible won't let me connect through SSH

喜欢而已 提交于 2019-12-04 00:53:08
Peter Power

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.

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

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!