🔧 Send unattended-upgrades mail only on error

Otherwise an email will be sent on every upgrade
This commit is contained in:
Stefan Haun 2022-11-16 18:12:08 +01:00
parent ebd8d13b25
commit 9f1940fa8f

View file

@ -35,6 +35,7 @@
- "origin=${ distro_id },archive=${ distro_codename }-updates"
unattended_package_blacklist: [cowsay]
unattended_mail: "root"
unattended_mail_only_on_error: true
- name: Install some common software packages
ansible.builtin.apt: