An ansible module for docker
Basic Usage
- hosts: localhost
roles:
- role: docker/daemon
to install the docker daemon
or
- hosts: localhost
roles:
- role: docker/ansible
to install the requirements for handling docker images or containers on an ansible node
e.g. docker_image or docker_container
Variables
docker_assume_already_installed: false
Use this to avoid installing docker, e.g. on travis-CI where docker is known to be present in a newer version than the OS provided docker
docker_package: docker.io
The name of the package to be installed. This defaults to OS specific defaults but can be overruled, e.g. on debian-ish systems the docker package is named docker.io but you can set it to docker-ce and it will configure the docker ppa and install from there.
docker_package: docker.io
The name of the package to be installed. This defaults to OS specific defaults but can be overruled, e.g. on debian-ish systems the docker package is named docker.io but you can set it to docker-ce and it will configure the docker ppa and install from there.
License
GPLv3