Explorar el Código

Rolle linux_updates:
- eMails werden nun auch bei Fehler versand

ansible hace 8 años
padre
commit
3c5b31ea59
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      roles/linux_updates/tasks/main.yml

+ 1 - 1
roles/linux_updates/tasks/main.yml

@@ -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 )