Contains a dockerfile which allows running an ansible controller inside a docker container.
1.6K
This repo contains a dockerfile which allows running an ansible controller inside a docker container.\
I want to setup my own virtual server and have it configured via code. Since ansible needs so much configuration when running as a controller, I decided it would be useful to encapsulate this into a docker container.
This docker container is NOT intended to be run on a remote server (although it could be possible for automating other servers from a control server running in docker).
Instead this is intended to be run manually on a mac, windows or linux to be able to run ansible commands by simply defining the host and config files and be good to go with the ansible command line inside this docker image.
Look into docker-compose.yml for this repo:
./ansible/hosts/opt/ansible-workdir, which is the WORKDIR
defined in the Dockerfiledocker-compose upbun run exec to get shell inside containerbun run exec to get shell access into the containeransible --versionpython3 --versionapk info openssh-clientapk info opensslbun run buildbun run tag:latestbun run deployapk info ansible python3 rsync sshpass openssh-client
# CAUTION: This will only give the package number for these packages, which is not neccessarily equal to program version number!
ansible --version
python3 --version
apt info openssh-client
apt info openssl
Content type
Image
Digest
sha256:e5e19b022…
Size
61.2 MB
Last updated
9 months ago
docker pull vservtech/ansible-controller-docker