Need variable that matches certain group-host run

Hi,
Im not finding exactly what Im trying to do, or maybe Im not getting how to accomplish this. Ive been playing with different ways to do this.

I need so set some different variable in a template.

this is content of j2 file.

`

Hi I found my answer …

Because I needed default variable to be attached to a specific host/inventory group during that group run I needed to add them into the inventory file itself… for this case it works perfect.

[P1-CI]
server01