# variables defined in group\_vars cannot be used as arguments when calling roles in a playbook.

**URL:** <https://forum.ansible.com/t/variables-defined-in-group-vars-cannot-be-used-as-arguments-when-calling-roles-in-a-playbook/15028>\
**Category:** Ansible Project\
**Created:** [April 15, 2014, 10:07pm UTC](https://forum.ansible.com/t/variables-defined-in-group-vars-cannot-be-used-as-arguments-when-calling-roles-in-a-playbook/15028 "2014-04-15T22:07:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Remy\_Saissy](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@Remy\_Saissy](https://forum.ansible.com/u/Remy_Saissy)\
**Post date:** [April 15, 2014, 10:07pm UTC](https://forum.ansible.com/t/variables-defined-in-group-vars-cannot-be-used-as-arguments-when-calling-roles-in-a-playbook/15028/1 "2014-04-15T22:07:13Z")

</div>

Hi,  
I want ot call the same role several time with different parameters in a playbook.  
the variables I use are a dictionnary defined in group\_vars.  
I cannot use these variables defined in a group\_vars file when listing roles in a playbook.  
Is it a normal behaviour? How should I do in order to achieve it?  
Thanks,  
Regards.

group\_vars/all

---

<div class="post-metadata">

**Author:** ![Remy\_Saissy](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@Remy\_Saissy](https://forum.ansible.com/u/Remy_Saissy)\
**Post date:** [May 2, 2014, 5:48pm UTC](https://forum.ansible.com/t/variables-defined-in-group-vars-cannot-be-used-as-arguments-when-calling-roles-in-a-playbook/15028/2 "2014-05-02T17:48:01Z")

</div>

I have eventually found out what was wrong.  
The double {{ }} and the double quote were missing in the playbook.yml, I didn’t notice at first.

playbook.yml
