Introduction to the problem
This post serves the purpose of showing how ansible and docker can be used together in order to automatically configure a keycloak docker container.
This is post serves as a reference to create a base for your next Docker project that might use your already in place ansible playbooks and roles.
Docker comes without the ability to use systemd without making some changes to the Dockerfile and the volumes passed to the container created.
Sometimes you find out the need (and so do I) to have distro agnostic scripts, and when using package manager things can get distro bound very quickly.