This role supports only for Ubuntu 14.04 and 16.04 and tested on Ansible version 2.4.2
This playbook installs docker-ce latest version.
- hosts: myhost
become: yes
roles:
- dockerThis playbook searches all 17.06 versions using apt-cache, choose latest one and install it.
- hosts: myhost
become: yes
roles:
- role: docker
docker_version: 17.06