Container with Ansible installed. Container starts a SSH server.
Login with user/password ansible/ansible. (Don't forget to change password after first login).
Start the container:
docker run -d -p 2222:22 --name ansible dhessenm/ansible
Login into container with SSH:
ssh -p 2222 -l ansible localhost
You can use now Ansible within the container.
Alternatively you can use the container in interactive mode an call ansible directly:
docker run -ti --rm --name ansible -v /local/path/to/ansible-playbooks/:/tmp/ dhessenm/ansible /bin/bash
Have fun! Dirk
Content type
Unrecognized
Digest
Size
159.4 MB
Last updated
about 10 years ago
docker pull dhessenm/ansible