Installs Docker on:
- Ubuntu 12.04+
- Debian 8.5+
This role differs from other roles in that it specifically follows docker.io installation instructions for each distribution version.
Example Play:
---
- name: Run docker.ubuntu
hosts: docker
roles:
- angstwad.docker_ubuntu
Please see this playbook as a more advanced example of how to utilize this role.
Applying the role to servers is pretty simple, as demonstrated above. Overriding the default configration is done simply by overriding the role's default variables:
- name: Install Docker
hosts: all
roles:
- role: angstwad.docker_ubuntu
ssh_port: 2222
kernel_pkg_state: present
Requires python-pycurl for apt modules.
Please see defaults/main.yml for a comprehensive list of variables that can be overridden.
None.
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
and it will provision them by applying this role with Ansible.
Requires ansible-playbook
to be in the path.
Apache v2.0