How to define workflow templates on specific host/group

Hi,

My goal is to define a set of workflow templates, each running on a different host/group.
I don’t want to define a set of different job templates that do the same tasks for each host/group.
I failed to define the host as a variable inside a job template and set its value from within the workflow template

Any ideas how to do this?