Ansible Role for Docker Host setup
This is a simple role playbook creating a docker-host
This role has been tested in an environment with the following components
- Ubuntu v12.04 or above
- Ansisble v1.7
- Docker v1.1.1
- Python v2.7
This role introduces /etc/default.docker.ext
as an extension to provide custom docker options during the startup of docker service.
As this is a completely self contained playbook delivering a working private docker host using the default configurations. Follow the steps below get running:
- run the playbook:
ansible-playbook -i hosts site.yml
That will use the official image from the Docker index.
No known issues
docker.ext.j2 is an extended templated Upstart default configuration and referred in standard /etc/default/docker
by sourcing as below
. /etc/default/docker.ext
Ansible tasks configuration are written in main.yml
Following are few ideas/features that will be developed in due-course of time
- Adding support for RHEL/CentOS