# Ansibleundefinederror

**URL:** <https://forum.ansible.com/t/ansibleundefinederror/30389>\
**Category:** Ansible Project\
**Created:** [May 21, 2019, 6:08pm UTC](https://forum.ansible.com/t/ansibleundefinederror/30389 "2019-05-21T18:08:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pnagaraj7656](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@pnagaraj7656](https://forum.ansible.com/u/pnagaraj7656)\
**Post date:** [May 21, 2019, 6:08pm UTC](https://forum.ansible.com/t/ansibleundefinederror/30389/1 "2019-05-21T18:08:48Z")

</div>

What does ansible undefined error indicate ?

I’m having a j2 template that creates a yml file with variables. And I get this undefined error, although I’ve never used that variable in my tasks .

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [May 28, 2019, 8:12pm UTC](https://forum.ansible.com/t/ansibleundefinederror/30389/2 "2019-05-28T20:12:24Z")

</div>

Show the actual playbook, and tell us what result you want to achieve with it.
