# error\_on\_undefined\_vars doesn't work for role parameters

**URL:** <https://forum.ansible.com/t/error-on-undefined-vars-doesnt-work-for-role-parameters/18160>\
**Category:** Ansible Project\
**Created:** [May 5, 2015, 4:21pm UTC](https://forum.ansible.com/t/error-on-undefined-vars-doesnt-work-for-role-parameters/18160 "2015-05-05T16:21:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jack.martin8912](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@jack.martin8912](https://forum.ansible.com/u/jack.martin8912)\
**Post date:** [May 5, 2015, 4:21pm UTC](https://forum.ansible.com/t/error-on-undefined-vars-doesnt-work-for-role-parameters/18160/1 "2015-05-05T16:21:02Z")

</div>

I was going to submit this as a bug but I decided to send email first in case I’m doing something wrong.

The session below should show all required information, but let me know whether something else is needed.

`  
ansible$ cat playbooks/test\_role\_with\_undefined\_list.yml

---

<div class="post-metadata">

**Author:** ![jack.martin8912](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@jack.martin8912](https://forum.ansible.com/u/jack.martin8912)\
**Post date:** [May 5, 2015, 4:23pm UTC](https://forum.ansible.com/t/error-on-undefined-vars-doesnt-work-for-role-parameters/18160/2 "2015-05-05T16:23:34Z")

</div>

Actually… `possibly_undefined_list `should have thrown an undefined error before you ever try to access list\_of\_items on the second run.
