# How to define workflow templates on specific host/group

**URL:** <https://forum.ansible.com/t/how-to-define-workflow-templates-on-specific-host-group/28491>\
**Category:** Ansible Developer\
**Created:** [September 3, 2018, 1:22pm UTC](https://forum.ansible.com/t/how-to-define-workflow-templates-on-specific-host-group/28491 "2018-09-03T13:22:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![user25](https://avatars.discourse-cdn.com/v4/letter/u/e56c9b/32.png) [@user25](https://forum.ansible.com/u/user25)\
**Post date:** [September 3, 2018, 1:22pm UTC](https://forum.ansible.com/t/how-to-define-workflow-templates-on-specific-host-group/28491/1 "2018-09-03T13:22:49Z")

</div>

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?
