我们如何在 ansible tower 的电子邮件通知中包含 playbook 相关信息,例如 playbook 中的一些变量值?

How can we include the playbook related information in email notification from ansible tower, like some variables value from the playbook?

我目前正在做一个项目,我需要在 ansible tower 上完成后向我的团队成员发送电子邮件,我希望在电子邮件中有一个网格,其中包含特定于剧本的信息,请注意此信息无法使用此处提供的参数访问: https://docs.ansible.com/ansible-tower/latest/html/installandreference/notification_parameters_supported.html 我还需要在电子邮件中附加剧本的日志。

你可以查看ansible中的mail_callback插件来给你的团队成员发送邮件,你可以通过在python方法中编写视图来自定义你想要的任何视图

可以从ansible tower获取日志api