# Email error from playbook run

**URL:** <https://forum.ansible.com/t/email-error-from-playbook-run/29609>\
**Category:** Ansible Developer\
**Tags:** awx\
**Created:** [February 4, 2019, 2:49pm UTC](https://forum.ansible.com/t/email-error-from-playbook-run/29609 "2019-02-04T14:49:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_B](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@Josh\_B](https://forum.ansible.com/u/Josh_B)\
**Post date:** [February 4, 2019, 2:49pm UTC](https://forum.ansible.com/t/email-error-from-playbook-run/29609/1 "2019-02-04T14:49:34Z")

</div>

Hello,  
I am looking at a way to use the send mail template to send me the actual error in the playbook run. I have created a workflow in AWX and after my post, I have an email going out if the server is created successfully. I would also like to send another mail on failure. This is working. However I would like to add the log of the failed job in the body of the email. Is there a way to do this?

Thanks!
