# Module "include\_vars" fails with when using "file" parameter

**URL:** <https://forum.ansible.com/t/module-include-vars-fails-with-when-using-file-parameter/22355>\
**Category:** Ansible Project\
**Created:** [August 23, 2016, 7:34am UTC](https://forum.ansible.com/t/module-include-vars-fails-with-when-using-file-parameter/22355 "2016-08-23T07:34:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frank\_Thommen](https://avatars.discourse-cdn.com/v4/letter/f/7feea3/32.png) [@Frank\_Thommen](https://forum.ansible.com/u/Frank_Thommen)\
**Post date:** [August 23, 2016, 7:34am UTC](https://forum.ansible.com/t/module-include-vars-fails-with-when-using-file-parameter/22355/1 "2016-08-23T07:34:25Z")

</div>

Hi,

when using the include\_module with the "file" parameter, it fails with

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AttributeError: 'NoneType' object has no attribute 'startswith'.

This works fine:

----- testmyvars\_1.yml -----------
