JSON log callback_plugin questions

Hello All!

I’ve made a basic callback_plugin for creating logs as json, check it out: https://github.com/petems/ansible-json

So far so good, it all works.

My plan is to a have a toggableable ability to write the logs to files on the system that ansible’s running on (Current progress here: https://github.com/petems/ansible-json/tree/create_json_files).

Two questions:

  1. How do I read playbook variables in the plugin? My plan is to have something like this in the playbook:

Hi,

For callback plugin development questions, can you please post to ansible-devel?

Thank you!