by angstwad

angstwad /docker.ubuntu

Docker role for Ansible on Ubuntu 14.04+

452 Stars 213 Forks Last release: 3 months ago (v3.9.0) Apache License 2.0 277 Commits 58 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


Installs Docker on:

  • Ubuntu 14.04+
  • Debian Jessie (8.5+) and Stretch

This role attempts to make every reasonable effort to follow Docker's official installation instructions for Ubuntu and Debian.

Example Play:

Very basic install utilizing the role defaults:

- name: Run docker.ubuntu
  hosts: docker
    - angstwad.docker_ubuntu

Overriding the default configration is done by overriding the role's default variables:

- name: Install Docker
  hosts: all
    - role: angstwad.docker_ubuntu
      ssh_port: 2222
      kernel_pkg_state: present


Requires python-pycurl for apt modules.

Role Variables

Please see defaults/main.yml for a comprehensive list of variables that can be overridden.




To test the role in a Vagrant environment just run

vagrant up
. This will create some VMs:
  • Ubuntu 12.04
  • Ubuntu 14.04
  • Ubuntu 16.04
  • Debian Jessie 8.5
  • Debian Stretch 9.0

and it will provision them by applying this role with Ansible.


to be in the path.


Apache v2.0

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.