![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU-M4cUokgm6uU0YVcY_kiEpvO8PVNhobd1bLWRX_mhyphenhyphen7SPnolumod7Nqe5QPCRVaNSQaJdwTYvHXRIhgFlK9RZmRBym2_TmmSaoI1bTRgpF1wlxksSxo6Sb_tWpHOS-7u-Xra3qOB0QuGCuuFiYPIaJ3x6LouEBxqdcu0ppHYIPvj8TJPJyeP0uvdQqID/w200-h136/docker_ansible.webp)
I wanted at least 2 linux machines with ansible installed. 1 as the ansible host and the other as ansible test destination.
There are ubuntu images with ansible pre-installed, but they don't have SSH access enabled. Seems that's a bit of a struggle, since the SSH server needs to be setup, hence a user is needed. And for testing the `become` feature, we needed sudo as well.
So I created this docker-compose project, that deploys 1 or more ubuntu machines with SSH enabled and ansible pre-installed.
Once you followed the procedure, you will have at least 2 containers listening for SSH on respectavely 2201 and 2202 with a default user and password.
0 Comments