# Ansible 2.0.0-0.2.alpha2: roles and with\_items?

**URL:** <https://forum.ansible.com/t/ansible-2-0-0-0-2-alpha2-roles-and-with-items/19383>\
**Category:** Ansible Project\
**Created:** [September 29, 2015, 11:17pm UTC](https://forum.ansible.com/t/ansible-2-0-0-0-2-alpha2-roles-and-with-items/19383 "2015-09-29T23:17:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo\_Gaspard](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@Leo\_Gaspard](https://forum.ansible.com/u/Leo_Gaspard)\
**Post date:** [September 29, 2015, 11:17pm UTC](https://forum.ansible.com/t/ansible-2-0-0-0-2-alpha2-roles-and-with-items/19383/1 "2015-09-29T23:17:10Z")

</div>

Hello,

This being my first post on this mailing list, please tell me if I break  
any custom.

I am trying to write a role that uses `with_items` along with `roles`.

However, I am currently stumbling upon a weird thing: I cannot use {{  
item }} for role variable definitions.

Here is a MWE:

File vpnclients.yml  
==========8\<==========

---

<div class="post-metadata">

**Author:** ![Leo\_Gaspard](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@Leo\_Gaspard](https://forum.ansible.com/u/Leo_Gaspard)\
**Post date:** [September 30, 2015, 12:16am UTC](https://forum.ansible.com/t/ansible-2-0-0-0-2-alpha2-roles-and-with-items/19383/2 "2015-09-30T00:16:07Z")

</div>

PS: Same issue with branch devel ; at a89412e ; with as only  
modification the replacement of the header of ansible-playbook from  
"#!/usr/bin/env python" to "#!/usr/bin/env python2".

---

<div class="post-metadata">

**Author:** ![Leo\_Gaspard](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@Leo\_Gaspard](https://forum.ansible.com/u/Leo_Gaspard)\
**Post date:** [October 2, 2015, 5:48am UTC](https://forum.ansible.com/t/ansible-2-0-0-0-2-alpha2-roles-and-with-items/19383/3 "2015-10-02T05:48:43Z")

</div>

Upping this message once, if I do nothing wrong I'll try filing an issue  
on GitHub.
