Ansible
Can you send mail within assert?
Archives
Ansible Project
ansible-project
system
(system)
December 17, 2019, 11:08pm
1
use a `block`, send mail in the `rescue` section and then use a `fail`
task to 'continue the error'
Related topics
Topic
Replies
Views
Activity
efficient way to get email notification about failed task in a playbook or role
Ansible Developer
2
39
July 21, 2018
How to send email if task fails on something or any particular condition? I
Ansible Project
1
102
June 22, 2022
Ansible multiple roles in a block with rescue/fail
Ansible Project
0
23
February 22, 2018
Rescue block doesn't seem to work when error is in an included file
Ansible Project
4
21
September 15, 2015
Want to send mail notification of task completion
Ansible Project
0
18
October 22, 2019