# Using jinja in group\_vars with variables passed by --extra-vars

**URL:** <https://forum.ansible.com/t/using-jinja-in-group-vars-with-variables-passed-by-extra-vars/17312>\
**Category:** Ansible Project\
**Created:** [January 19, 2015, 3:50pm UTC](https://forum.ansible.com/t/using-jinja-in-group-vars-with-variables-passed-by-extra-vars/17312 "2015-01-19T15:50:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wojciech\_Korzenny](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wojciech\_Korzenny](https://forum.ansible.com/u/Wojciech_Korzenny)\
**Post date:** [January 19, 2015, 3:50pm UTC](https://forum.ansible.com/t/using-jinja-in-group-vars-with-variables-passed-by-extra-vars/17312/1 "2015-01-19T15:50:46Z")

</div>

Hi,

I’m trying to use jinja for setting test\_plan parameter in group\_vars based on some variables passed by --extra-vars.

This is my group\_vars/load\_drivers content:

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [January 19, 2015, 4:15pm UTC](https://forum.ansible.com/t/using-jinja-in-group-vars-with-variables-passed-by-extra-vars/17312/2 "2015-01-19T16:15:53Z")

</div>

group vars are not parsed by jinja2 only yaml, you can use jinja in  
the values if they will later get evaluated in the playbook, but the  
file itself does not pass through jinja.
