docker
troykinsella.docker
An ansible role that installs Docker as per the instructions listed here: https://docs.docker.com/install/linux/docker-ce/ubuntu/
Role Variables
See defaults/main.yml
for default values.
docker_repository_url
: Optional. The URL of the apt repository from which the docker package is installed.docker_gpg_key_fingerprint
: Optional. The GPG key fingerprint for the docker apt repository.docker_package_name
: Optional. The name of the docker apt package to install.docker_systemd_service_d_path
. Optional. The path to the systemd docker.service.d directory.docker_systemd_startup_options_conf
: Optional. The name of the config file to generate indocker_systemd_service_d_path
whendocker_enable_remote_api
isyes
.docker_enable_remote_api
: Optional. Boolean. Configure the docker remote API.docker_bind_port
: Optional. The port on which the docker daemon should listen whendocker_enable_remote_api
isyes
.docker_group_members
: Optional. A list of users to make members of thedocker
group.
Example Playbook
- hosts: servers
roles:
- role: troykinsella.docker
docker_enable_remote_api: yes
Platforms
Ubuntu:
- trusty
- xenial
- bionic
Testing
Prerequisites:
docker
ruby
> 2.3bundler
Test:
bundle install
bundle exec kitchen test
License
MIT © Troy Kinsella
About
Docker allows you to package an application with all of its dependencies into a standardized unit for software development.
Install
ansible-galaxy install troykinsella/ansible-docker
License
mit
Downloads
1379
Owner
Staff Solutions Architect at @collectivei.