# include\_vars "m.yml must be stored as a dictionary/hash"

**URL:** <https://forum.ansible.com/t/include-vars-m-yml-must-be-stored-as-a-dictionary-hash/25452>\
**Category:** Ansible Project\
**Created:** [September 11, 2017, 1:34pm UTC](https://forum.ansible.com/t/include-vars-m-yml-must-be-stored-as-a-dictionary-hash/25452 "2017-09-11T13:34:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snd\_LP](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Snd\_LP](https://forum.ansible.com/u/Snd_LP)\
**Post date:** [September 11, 2017, 1:34pm UTC](https://forum.ansible.com/t/include-vars-m-yml-must-be-stored-as-a-dictionary-hash/25452/1 "2017-09-11T13:34:48Z")

</div>

keep on getting “m.yml must be stored as a dictionary/hash” in playbook despite having no comments or space.  
Any clue?

[Main.yml]

`

- name: Include all .yml  
include\_vars:  
dir: ‘tasks’  
extensions:
- json
- yml

#(OR)

- name: Include all .yml files except bastion.yml (2.3)  
include\_vars:  
dir: ‘vars’  
ignore\_files: ‘bastion.yml’  
extensions: [‘yml’]

`

[task-1.yml]

`
