This is a gcavalcante8808/ansible docker image with Ansible Installed. it's Base on Debian:jessie official image.
docker build -t gcavalcante8808/ansible .
If you want to build an image with a specific version of ansible (2.1 in the sample), you can do the following:
docker build --build-arg ANSBILE_VERSION=2.1 -t gcavalcante8808/ansible:2.1 .
docker run \
-d \
--name ansible \
gcavalcante8808/ansible
After that, you can access the container and run ansible-playbook and other commands through the following way:
docker exec -it ansible bash
Author: Gabriel Abdalla Cavalcante Silva ([email protected])