geerlingguy / ansible-role-security

Ansible Role - Security

Home Page:https://galaxy.ansible.com/geerlingguy/security/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR No /usr/bin/mail or /usr/sbin/sendmail, can not send mail

GarrisonD opened this issue · comments

~ 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

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.

Oh, I see. It also requires configuring the SMTP client with credentials...

It's not the responsibility of this role.