include_vars - variable is not Serializable

93 views
Skip to first unread message

Robert Wagner

unread,
May 7, 2020, 12:34:53 PM5/7/20
to Ansible Project
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

Robert Wagner

unread,
May 7, 2020, 1:53:33 PM5/7/20
to Ansible Project
Never mind - I had a typo that was leading to a not-helpful error message.

Thanks,

Rob
Reply all
Reply to author
Forward
0 new messages