Is there a facility in Ansible for collecting and capturing/exporting failed/fatal results or the entire summary as a variable, or output to a file?
Basically what I want to be able to do is extract the information about failures from an ansible-playbook run and export them to another process, such as to send the results into an error handler or an alerting system or something like that. I can probably wrap the ansible-playbook job such that I could extract this information to export the results to a variable to pass into another process but this might be a feature that exists and I just haven’t been able to figure out. What’s the recommended way of doing something like this?
Thanks!