# Passing mupltiple variables to template vars yml

**URL:** <https://forum.ansible.com/t/passing-mupltiple-variables-to-template-vars-yml/30155>\
**Category:** Ansible Project\
**Created:** [April 20, 2019, 7:22am UTC](https://forum.ansible.com/t/passing-mupltiple-variables-to-template-vars-yml/30155 "2019-04-20T07:22:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CORLEONE](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@CORLEONE](https://forum.ansible.com/u/CORLEONE)\
**Post date:** [April 20, 2019, 7:22am UTC](https://forum.ansible.com/t/passing-mupltiple-variables-to-template-vars-yml/30155/1 "2019-04-20T07:22:56Z")

</div>

Hello guys…i have a playbook which i am invoking using jenkins…however i am unable to pass on variables as arguments so that they could override template-vars.yml preset variables and also some new variables…how to achieve it???

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [April 23, 2019, 2:33am UTC](https://forum.ansible.com/t/passing-mupltiple-variables-to-template-vars-yml/30155/2 "2019-04-23T02:33:09Z")

</div>

you don't give enough info, what is template-vars.yml? how do you load it?

In any case, any solution is predicated on variable precedence, which  
is documented here:  
[https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_variables.html#variable-precedence-where-should-i-put-a-variable](https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable)
