I can’t imagine using Ansible to configure a single server, seems like the wrong tool IMO.
Why not something like docker-compose and put all of the config bits into a single repo?
That way you can clone the repo on a new server and simply rebuild the containers.