Note ubuntu 14.04 is the only supported and tested OS.
Prepare a remote host with publicly resolvable domain name (required to obtain Let's Encrypt SSL certs). Note: I haven't tested it with free domains (.tk, .gl, etc.), please report if you have.
Install ansible, create hosts inventory.
Create remote sudo user and disable root ssh access:
$ ./user.yml
Install docker registry:
$ ./install.yml
After 3 months you will have to reissue SSL certificates manually:
$ ./reissue.yml