Please see https://github.com/TempoChocolate/ansible-docker-firefly-iii instead of going through this gist.
In this tutorial I will be showing you how to deploy Firefly III via Ansible with Docker behind a containerised Nginx reverse proxy (so you can securely access Firefly III publically). I use Cloudflare as my DNS provider, so I will be showing you how to get hold of a certificate from letsencrypt via a Cloudflare DNS challenge.
If you have any comments/suggestions/questions, please do post them below and I will be happy to answer, embrace change, or help :)
You can either follow the folder structure I use, or merge all the tasks, vars, etc., however, I prefer to separate roles, tasks, vars, and templates, as it makes writing and using playbooks easier to understand and makes the experience much more modular.