2 ways, have the role take a list of vhost configs and loop over them. Or have it take a single one and call it once per vhost.