https://github.com/ivotron/docker-python-sshd
container for testing ansible playbooks
https://github.com/ivotron/docker-python-sshd
Last synced: 25 days ago
JSON representation
container for testing ansible playbooks
- Host: GitHub
- URL: https://github.com/ivotron/docker-python-sshd
- Owner: ivotron
- Created: 2017-11-30T17:30:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-15T05:41:57.000Z (over 8 years ago)
- Last Synced: 2025-01-26T08:13:26.541Z (over 1 year ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# python + sshd + docker
Image used to test ansible playbooks
Usage:
```bash
docker run --rm --name=node1 \
-p 2221:22 \
-e ADD_INSECURE_KEY=true \
-v /var/run/docker.sock:/var/run/docker.sock \
ivotron/python-sshd:debian-9
```
Launch more "nodes" by instantiating more containers using distinct
ports, e.g. another `node2` container on port `2222`, `node3` on
`2223`, and so on. Then, write a `hosts` file:
```
node1 ansible_host=localhost ansible_port=2221 ansible_user=root
node2 ansible_host=localhost ansible_port=2222 ansible_user=root
node3 ansible_host=localhost ansible_port=2223 ansible_user=root
```
And run a playbook.