So I'm basically trying to load the config files through an task so in the first part of the task it would use the configuration variables for domain 1 for example with the nginx vhost file and the second part it would use the configuration variables for domain 2 which basically has the same keys but a different set of values.
The idea here is to have the task load the first config file variables then run the vhost tasks and then after this it would load the second config file variables and run the same vhost task but with new values.
How would this be done?