Is there a way to print a report at the end of an ansible run?

I have an ansible setup that generates a set of clusters and their configuration.

I want to print (locally) a report showing which services were deployed, what their credentials were, etc.

debug won’t work because the output it escaped so I get lots of \n\n …

a command with ‘cat’ won’t work because it just prints ‘success’ .

Any thoughts?

You could write a callback plugin that aggregates that data, and prints out on v2_playbook_on_stats similarly to the way the PLAY RECAP is output.