# How to execute ansible integration tests within docker environment without SSH connection

**URL:** <https://forum.ansible.com/t/how-to-execute-ansible-integration-tests-within-docker-environment-without-ssh-connection/45789>\
**Category:** Get Help\
**Created:** [May 11, 2026, 9:46am UTC](https://forum.ansible.com/t/how-to-execute-ansible-integration-tests-within-docker-environment-without-ssh-connection/45789 "2026-05-11T09:46:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabhuk](https://avatars.discourse-cdn.com/v4/letter/p/cdc98d/32.png) [@prabhuk](https://forum.ansible.com/u/prabhuk)\
**Post date:** [May 11, 2026, 9:46am UTC](https://forum.ansible.com/t/how-to-execute-ansible-integration-tests-within-docker-environment-without-ssh-connection/45789/1 "2026-05-11T09:46:17Z")

</div>

Hey Community!

We have a requirement to execute an ansible integration test within docker environment/within container (UBI9).

I was getting an SSH connection error while executing tests, SSH connection is not establishing, getting:  
_**WARNING: SSH service not responding. Waiting 3 second(s) before checking again.**_

And exiting with:  
FATAL: Command “ssh -o BatchMode=yes localhost id” returned exit status 255.

> > > Standard Error  
> > > Host key verification failed.

So, i just wanted to know is there any way we can verify integration test within container/docker environment without SSH connection? since SSH is not working as it works on local machine.

Please suggest if there are any solutions to SSH issue or to run test inside container.

---

<div class="post-metadata">

**Author:** ![bcoca](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bcoca/32/9269_2.png) [@bcoca](https://forum.ansible.com/u/bcoca)\
**Post date:** [May 11, 2026, 1:40pm UTC](https://forum.ansible.com/t/how-to-execute-ansible-integration-tests-within-docker-environment-without-ssh-connection/45789/2 "2026-05-11T13:40:36Z")

</div>

Many of the tests are designed explicitly to test the connection between a controller and a target and usage of the ssh connection plugin in particular.

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [May 11, 2026, 2:59pm UTC](https://forum.ansible.com/t/how-to-execute-ansible-integration-tests-within-docker-environment-without-ssh-connection/45789/3 "2026-05-11T14:59:46Z")

</div>

If the container has a new enough Python so it can run ansible-core’s controller, and you’re not explicitly requesting split-controller testing (different containers for controller and target), then I don’t think SSH is used.
