Ver código fonte

Rolle linux_updates:
- eMails werden nun auch bei Fehler versand

ansible 8 anos atrás
pai
commit
3c5b31ea59
1 arquivos alterados com 1 adições e 1 exclusões
  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 )