files in group_vars?

Problem:
We want a simple nginx role that can be re-used in different ways, i.e. not serving same purpose, and with entirely unrelated files in /etc/nginx/conf.d/

Can we use files as if they were in roles/nginx/files but instead the files are read from group_vars in a way that correspond with inventory/env and group_vars/env? The idea being to decouple the files from the role… Thanks

You can use the template module to build up your nginx configuration files from variables