This role installs the latest version of Docker from the official Docker repositories. All the other roles I've found seemed to be way more opinionated. This one just installs docker-engine
, starts the service, then leaves you alone. Good day sir.
docker_opts
- Arguments passed to the docker daemon at start timedocker_env
- Dictionary of environment variables to set for the docker daemon
Use the docker_env
variable to set the HTTP_PROXY
and/or HTTPS_PROXY
environment variables:
- hosts: all
roles:
- role: DavidWittman.docker
docker_env:
HTTP_PROXY: "http://127.0.0.1:8080"
HTTPS_PROXY: "https://127.0.0.1:8080"
This role can be quickly deployed with Vagrant or with Test Kitchen to deploy and run a set of automated tests with bats.
$ vagrant up
# Install dependencies
$ bundle install
# Deploy, provision, and run tests
$ kitchen test