geerlingguy / docker-centos7-ansible

CentOS 7 Docker container for Ansible playbook and role testing.
https://hub.docker.com/r/geerlingguy/docker-centos7-ansible/
MIT License
102 stars 87 forks source link

Question about SSH #10

Closed H4sh3 closed 4 years ago

H4sh3 commented 4 years ago

Hey, first of all great image. I had some trouble getting it to work, ansible could not connect to the remote host per ssh. After i installed openssh-clients with yum it worked. Is the error on my side or should we add the ssh clients lib in the dockerfiles yum install section? greetings

geerlingguy commented 4 years ago

I don't particularly recommend using SSH to either connect to a container, or necessarily inside the container to connect to other things. These images are meant for testing Ansible playbooks, but not necessarily running them against other hosts from within.

In that case, if you need to be able to do that within a container, you'd need to make sure to install the extra software required in your own downstream Dockerfile.