Thisi is an ansible role  http://docs.ansible.com/playbooks_roles.html#roles  to install docker https://www.docker.com/