THIS IMAGE HAS BEEN DEPRECATED
Ansible no longer maintains images in Dockerhub directly. There are
several Ansible images on Dockerhub that are maintained by members of
the Ansible community, which you can find with the following search:
These are base docker images that include ansible. Ansible maintains these
images so that people can easily build docker images using ansible playbooks.
The images in this repository use ubuntu14.04 as their base. If you'd rather base
your image on centos7 , please see:
Supported tags and respective Dockerfile links
devel and latest point to an image built with a recent checkout of ansible's
stable is built with the latest ansible release on pypi.
The $major.$minor tags are useful if you have to use a specific older version
of the images for some reason. Note that we do not build new versions of these
older images. We only build for versions that correspond to the devel and
Building your Docker images with an ansible playbook
A simple example of using this to build a Docker image using a playbook can be found in the source repository:
Rebuilding automatically when the ansible image updates
If you are using a docker hub automated build to build your images you can set
your image to rebuild whenever the base ansible image is updated:
- Go to the docker hub page for your repository.
- In the sidebar labeled Settings, find the entry marked "Repository Links"
- On the Repository Links page, enter the ansible repository you are layering
your image on top of. For instance, if you are using the
ubuntu14.04-ansible repository, enter ansible/ubuntu14.04-ansible
into the "Repository Name" box and click "add".
- Docker hub will now automatically rebuild your image whenever that ansible
repository has a new build.