ansible.builtin.junit – write playbook output to a JUnit file.
This callback plugin is part of
ansible-core and included in all Ansible
installations. In most cases, you can use the short
junit even without specifying the
However, we recommend you use the FQCN for easy linking to the
plugin documentation and to avoid conflicting with other collections that may have
the same callback plugin name.
This callback writes playbook output to a JUnit formatted XML file.
Tasks show up in the report as follows: ‘ok’: pass ‘failed’ with ‘EXPECTED FAILURE’ in the task name: pass ‘failed’ with ‘TOGGLE RESULT’ in the task name: pass ‘ok’ with ‘TOGGLE RESULT’ in the task name: failure ‘failed’ due to an exception: error ‘failed’ for other reasons: failure ‘skipped’: skipped
The below requirements are needed on the local controller node that executes this callback.
enable in configuration