A docker image to run ansible
The tag must exist on the ansible pip repository
git clone https://github.com/Ovski4/docker-ansible.git
cd docker-ansible
docker build -t ovski/ansible:v4.0.0 .
By default, the base container is debian/buster and the ansible version is 4.0.0 .
To specify another debian version, and another ansible release, you can do the following:
docker build -t ovski/ansible:v2.10.5 --build-arg="ANSIBLE_TAG=2.10.5 ." --build-arg="DEBIAN_TAG=stretch" .
# check the version
docker run ovski/ansible:v4.0.0
# run a playbook
docker run -v $(pwd):/var ovski/ansible:4.0.0 ansible-playbook /var/playbook.yml
Content type
Image
Digest
Size
390 MB
Last updated
over 5 years ago
docker pull ovski/ansible