@@ -43,5 +43,5 @@
body: "{{ lookup('template', 'templates/mail_body.j2') }}"
subtype: html
delegate_to: localhost
- when: ansible_os_family == "Debian" and apt_upgrade.changed
+ when: ansible_os_family == "Debian" and ( apt_upgrade.changed or apt_upgrade.failed == true )