소스 검색

Rolle linux_updates:
- eMails werden nun auch bei Fehler versand

ansible 8 년 전
부모
커밋
3c5b31ea59
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 )