ERROR No /usr/bin/mail or /usr/sbin/sendmail, can not send mail
GarrisonD opened this issue · comments
Ihor Dotsenko commented
~ tail /var/log/unattended-upgrades/unattended-upgrades.log
...
ERROR No /usr/bin/mail or /usr/sbin/sendmail, can not send mail. You probably want to install the mailx package.
~ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
Ihor Dotsenko commented
unattended-upgrades suggests bsd-mailx and default-mta but ansible apt
command never installs suggested packages..
It would be excellent for the role to take care of it when security_autoupdate_mail_to
is specified.
Ihor Dotsenko commented
Oh, I see. It also requires configuring the SMTP client with credentials...
It's not the responsibility of this role.