Interview Prep/Ansible/Performance, Testing and CI/CD

A job must produce machine-readable reports for a dashboard.

AdvancedScenarioPerformance, Testing and CI/CD
Answer

Situation read → Structured output.

What I'd do → Use the json or junit callback, or write a CSV from the play.

ANSIBLE_STDOUT_CALLBACK=yaml ansible-playbook site.yml
ANSIBLE_CALLBACKS_ENABLED=junit JUNIT_OUTPUT_DIR=./reports ansible-playbook site.yml

Why → JUnit XML plugs into CI test reports natively.

Interview tip → AWX exposes job events through its REST API too.

All Ansible questions Roadmap: Ansible

More on Performance, Testing and CI/CD