Installs docker-ce with official packages from download.docker.com.
Tested with:
- CentOS 7
- Debian 8
- Fedora 24
- Ubuntu 16.04
You can create requirements.yml and add these line there:
- src: https://github.com/vsamofal/ansible-role-docker-engine.git
name: docker-engine
version: master
path: roles/docker-engine
Run install process like this:
ansible-galaxy install -r requirements.yml --roles-path roles/
---
- hosts: docker-hosts
become: true
roles:
- { role: pauvos.docker-engine }
Available variables are listed below, along with default values:
docker_engine_cache_valid_time: 84600 # cache_valid_time for apt