Skip to content

This role handle Docker installation with ansible

Notifications You must be signed in to change notification settings

Krast76/ansible-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Docker role

Features

Install docker-engine from official Docker Inc's repository

Source

Based on Krast76's role

Variables

Available variables are listed below, along with default values (see defaults/main.yml)

  • Package type (Community or Enterprise)

    docker_package_type: docker-ce

  • Repository's GPG signature key (required for installation on Debian)

    docker_gpg_url: "https://download.docker.com/linux/debian/gpg"

  • Docker Machine related variables :

    docker_machine: False docker_machine_version: 0.10.0

  • Docker Compose related variables :

    docker_compose: False docker_compose_version: 1.12.0

  • Docker unsecure registry (only for registry without TLS/SSL) :

    docker_insecure_registry: - myregistry:5000 - mybetterregistry:4000

  • Docker live-migration (keep containers running when docker daemon restart) :

    docker_live_restore: True

  • Allow docker to manage iptables rules :

    docker_manage_iptables: True

Example playbook

---
- hosts: localhost
  vars:
    - docker_package_type: docker-ce
    - docker_compose: True
  roles:
    - docker

About

This role handle Docker installation with ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages