Hi
I have a callback plugin which parses output to json. How can I use them to run through awx?
Hi
I have a callback plugin which parses output to json. How can I use them to run through awx?
I have a proposal to allow this, but it is not supported now. Getting it done requires a number of supporting items to make it something that is maintainable.
Ansible vendors with a JSON stdout callback plugin, so you don’t need to manage it separately on your own. Keep in mind, JSON cannot be streamed (like YAML). So job events would all have empty standard out except for the final one where the callback plugin dumps all the saved data. You might also consuming the event data directly from the API, because it has the same content without any fragile user customizations.
I change runner_config for json, but not work set_stats. I´m debug yet.
line: 184
/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/ansible_runner/runner_config.py
self.env[‘ANSIBLE_STDOUT_CALLBACK’] = self.env.get(‘ANSIBLE_STDOUT_CALLBACK’)