jnv / ansible-role-unattended-upgrades

[DEPRECATED] Setup unattended-upgrades on Debian-based systems
https://github.com/jnv/ansible-role-unattended-upgrades/issues/98
GNU General Public License v2.0
272 stars 94 forks source link

Add support for automatically installing `bsd-mailx` if mail is to be sent #65

Closed colans closed 5 years ago

colans commented 5 years ago

Is there any reason not to install bsd-mailx if unattended_mail has been set to TRUE?

This is the package I've always used for this, when configuring this functionality manually. I'd like to start using this role, but that package installation is missing. It shouldn't be necessary to install that and then run this role.

We could introduce variables like:

I could put together a PR if there are no objections.

colans commented 5 years ago

Actually, I think we can get by with msmtp-mta along with the bas-mailx package, which would get installed by another role. Sorry for the trouble.

jnv commented 5 years ago

Thanks. If I remember correctly the unattended-upgrades package recommends a few MTAs, so I'd prefer to leave the choice to user. It could be documented for this role, but I don't think we need to replace all the existing documentation for unattended-upgrades… 🙂