# 'include\_vars' doesn't find the vars file

**URL:** <https://forum.ansible.com/t/include-vars-doesnt-find-the-vars-file/36952>\
**Category:** Ansible Project\
**Created:** [August 5, 2022, 4:36pm UTC](https://forum.ansible.com/t/include-vars-doesnt-find-the-vars-file/36952 "2022-08-05T16:36:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dulhaver](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dulhaver/32/1061_2.png) [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Post date:** [August 5, 2022, 4:36pm UTC](https://forum.ansible.com/t/include-vars-doesnt-find-the-vars-file/36952/1 "2022-08-05T16:36:28Z")

</div>

I want to include a defaults, or variable file in the /defaults/main.yml of a role I am playing  
Upon execution I am getting "the defaults/main.yml file for role 'postgres\_disable' must contain a dictionary of variables"

====== DETAILED ERROR ============================================================  
ansible-playbook [core 2.12.2]  
&nbsp;&nbsp;config file = /home/gwagner/repos/ansible/open\_source/postgres\_upgrade/ansible.cfg  
&nbsp;&nbsp;configured module search path = ['/home/gwagner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']  
&nbsp;&nbsp;ansible python module location = /usr/lib/python3.8/site-packages/ansible  
&nbsp;&nbsp;ansible collection location = /home/gwagner/.ansible/collections:/usr/share/ansible/collections  
&nbsp;&nbsp;executable location = /usr/bin/ansible-playbook  
&nbsp;&nbsp;python version = 3.8.12 (default, Sep 16 2021, 10:46:05) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)]  
&nbsp;&nbsp;jinja version = 2.10.3  
&nbsp;&nbsp;libyaml = True  
Using /home/gwagner/repos/ansible/open\_source/postgres\_upgrade/ansible.cfg as config file  
host\_list declined parsing /etc/ansible/hosts as it did not pass its verify\_file() method  
script declined parsing /etc/ansible/hosts as it did not pass its verify\_file() method  
auto declined parsing /etc/ansible/hosts as it did not pass its verify\_file() method  
Parsed /etc/ansible/hosts inventory source with ini plugin  
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'  
ERROR! The defaults/main.yml file for role 'postgres\_disable' must contain a dictionary of variables
