ansible.builtin.junit – write playbook output to a JUnit file.¶
Note
This module is part of ansible-base
and included in all Ansible
installations. In most cases, you can use the short module name
junit even without specifying the collections:
keyword.
Despite that, we recommend you use the FQCN for easy linking to the module
documentation and to avoid conflicting with other collections that may have
the same module name.
Synopsis¶
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
Requirements¶
The below requirements are needed on the local controller node that executes this callback.
whitelist in configuration
junit_xml (python lib)