Ansible – registering play recap as a variable to send in an email or other form of communication

I am using ansible AWX to run my playbooks. Is there a way to store the "PLAY RECAP" as a variable or extract it so that it can be send as an email? We have scheduled jobs in AWX and it would be good if we can review the Play recap without needing to login to AWX. I tried log_plays and it works to an extend, but the log files are not over writing, it only appends, so it has lot of old play runs.

Anyone tried this before? Thanks in advance.



Read more here: https://stackoverflow.com/questions/67388996/ansible-registering-play-recap-as-a-variable-to-send-in-an-email-or-other-form

Content Attribution

This content was originally published by Sathish M at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: