Skip to content

BasisTI/ansible_docker

Repository files navigation

Ansible Role: Docker Engine

An ansible role that installs docker engine on rhel/centos/fedora and debian/ubuntu.

Ansible Galaxy

Tags:

Variables:

  • docker_version: '' - Set a specific version of Docker Engine, list the available versions in the repo, then select.

example:

docker_version: "18.09.1" # CentOS
docker_version: "5:18.09.1~3-0~debian-stretch" # Debian
docker_version: "3:18.09.1" # Fedora
docker_version: "5:18.09.1~3-0~ubuntu-xenial" # Ubuntu
  • docker_options: '' - Defines options of daemon.json

example:

docker_options:
   bip: "172.17.0.1/16"
   exec-opts: ["native.cgroupdriver=systemd"]
   log-driver: "json-file"
   log-opts: {"max-size": "100m"}
   storage-driver: "overlay2"
   storage-opts: ["overlay2.override_kernel_check=true"]

License

Mit

Documentation generated using: Ansible-autodoc

About

Ansible role for installing Docker Engine

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages