# include\_vars - variable is not Serializable

**URL:** <https://forum.ansible.com/t/include-vars-variable-is-not-serializable/32878>\
**Category:** Ansible Project\
**Created:** [May 7, 2020, 4:34pm UTC](https://forum.ansible.com/t/include-vars-variable-is-not-serializable/32878 "2020-05-07T16:34:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Wagner](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@Robert\_Wagner](https://forum.ansible.com/u/Robert_Wagner)\
**Post date:** [May 7, 2020, 4:34pm UTC](https://forum.ansible.com/t/include-vars-variable-is-not-serializable/32878/1 "2020-05-07T16:34:53Z")

</div>

Hi all. Wondering if somebody can point me in the right direction - Google has led me on bit of a wild goose chase.

I’m using ansible 2.9.6 on CentOS 7.7.

I have some vaulted vars that if I put in vars/main.yml work fine. If I move the same vars to another file and include it (include\_vars: myfile.yml) , the play that uses them bombs.

[WARNING]: Failure using method (v2\_runner\_on\_ok) in callback plugin (\<ansible.plugins.callback.foreman.CallbackModule object at 0x7ff965ec6a10\>): u  
Errror “‘myvar’ is not JSON serializable”.

I’m reading it closer now that I’ve pasted it here that it does mention foreman’s CallbackModule in the error, but not sure if the issue is introduced by Foreman running the playbook.

Any advice would be appreciated,

Rob

---

<div class="post-metadata">

**Author:** ![Robert\_Wagner](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@Robert\_Wagner](https://forum.ansible.com/u/Robert_Wagner)\
**Post date:** [May 7, 2020, 5:53pm UTC](https://forum.ansible.com/t/include-vars-variable-is-not-serializable/32878/2 "2020-05-07T17:53:33Z")

</div>

Never mind - I had a typo that was leading to a not-helpful error message.

Thanks,

Rob
