# Is there any way to make Ansible throw warnings when a variable is not defined

**URL:** <https://forum.ansible.com/t/is-there-any-way-to-make-ansible-throw-warnings-when-a-variable-is-not-defined/13003>\
**Category:** Ansible Project\
**Created:** [June 21, 2013, 1:46pm UTC](https://forum.ansible.com/t/is-there-any-way-to-make-ansible-throw-warnings-when-a-variable-is-not-defined/13003 "2013-06-21T13:46:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dongdong\_Zhou](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@Dongdong\_Zhou](https://forum.ansible.com/u/Dongdong_Zhou)\
**Post date:** [June 21, 2013, 1:46pm UTC](https://forum.ansible.com/t/is-there-any-way-to-make-ansible-throw-warnings-when-a-variable-is-not-defined/13003/1 "2013-06-21T13:46:25Z")

</div>

Hi,

I’m just wondering if there is any settings that can make Ansible throw a warning or error out if a variable is not defined anywhere?

Any thoughts would be much appreciated.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [June 22, 2013, 5:00pm UTC](https://forum.ansible.com/t/is-there-any-way-to-make-ansible-throw-warnings-when-a-variable-is-not-defined/13003/2 "2013-06-22T17:00:17Z")

</div>

Yes, there’s already a parameter for this added in Ansible 1.3.

look in examples/ansible.cfg from a current checkout.
