Personal Ansible build based on Debian 13 with preinstalled packages:
curl
git
tree
python3.13
python3.13-venv
python3-pip
libssh-dev
ansible
sshpass
openssh-server
openssh-client
rsyslog
Debian-based container with SSH and Ansible preinstalled.
Exposes port 22/tcp for SSH connections.
The container starts and runs as root.
You can use it for testing or learning purposes
git clone https://github.com/Avidei/ansible-ssh.git
cd ansible-sshdocker build -t avidei/ansible-ssh:latest . && \
docker run -d -p 2222:22 --name ansible-ssh avidei/ansible-ssh:latestgit clone https://github.com/Avidei/ansible-ssh.git
cd ansible-sshdocker compose up -d| Field | Value |
|---|---|
| Username | avidei |
| Password | avidei |
Connect via:
ssh avidei@localhost -p 2222It's recommended to create a dedicated Python virtual environment for the Ansible user.
python -m venv /home/avidei/.ansible
source /home/avidei/.ansible/bin/activate