I am sorry, those were typos:
template: 
{% if subnet == 'subnet-ab1' %} 
subnet1 
{% elif subnet == 'subnetab2' %} 
subnet2 
{% elif subnet == 'subnetab3' %} 
subnet3 
{% elif subnet == 'subnetab4' %} 
subnet4 
{% else %} 
subnet5 
{% endif %} 

playbook:
group_id: "{{ lookup('template', 'sec_grp.j2') }}" 

On Saturday, July 30, 2016 at 11:33:42 AM UTC-4, Kai Stian Olstad wrote:
>
> Your are mixing single and double quotes. 
>
> > 
> > I am assigning the variable in the main playbook like this: 
> > 
> > group_id: "{{ lookup('template', 'sec_grp.j2") }}" 
>
> Ditto. 
>
> -- 
> Kai Stian Olstad 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9177f561-7f6b-471b-af04-49e7fb660a14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to