I am trying to find the best way to write roles which have a per item configurations. By that I mean something like nginx or uwsgi where there are multiple sites or applications.
For example my current nginx role has a nginx_sites variable which is a dictionary of multiple site configurations: