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

**URL:** <https://forum.ansible.com/t/module-include-vars-fails-with-when-using-file-parameter/22359>\
**Category:** Ansible Project\
**Created:** [August 23, 2016, 1:38pm UTC](https://forum.ansible.com/t/module-include-vars-fails-with-when-using-file-parameter/22359 "2016-08-23T13:38:19Z")\
**Posts on this page:** 2\
**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, 1:38pm UTC](https://forum.ansible.com/t/module-include-vars-fails-with-when-using-file-parameter/22359/1 "2016-08-23T13:38:19Z")

</div>

Hi,

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

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

This works fine:

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

---

<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 24, 2016, 10:45am UTC](https://forum.ansible.com/t/module-include-vars-fails-with-when-using-file-parameter/22359/2 "2016-08-24T10:45:57Z")

</div>

Seems to have been fixed in the latest 2.2 release  
f.
