Ansible role that installs docker, docker-compose and all required dependencies on Debian, RHEL/CentOS and Ubuntu.
- RHEL/CentOS 7 (Untested)
- Debian 8+
- Ubuntu 14.04+ (Untested)
- Ansible 2.8+
See ./defaults/main.yml
for configurable variables and their defaults
---
- name: Example play
hosts: all
roles:
- { role: docker }
---
- name: Example play with optional vars set
hosts: all
roles:
- { role: docker,
docker_users: ["derp"],
docker_compose: no,
docker_service_state: "stopped",
docker_service_enabled: no
}
git submodule add https://github.com/tekniqueltd/ansible-role-docker.git roles/docker
- geerlingguy/ansible-role-docker