Ansible role for configuration of unattended security upgrades. Auto restarting is disabled.
The vars/main.yml
file should contain your list of packages you want to install in order to override defaults found in defaults/main.yml
. Additionally, you can overwrite the variables as part of your playbook.
Some security updates require a reboot. To make sure that this doesn't happen when you're least expecting and brings down your production environment, Unattended-Upgrade::Automatic-Reboot
is specifically set to false
by default.
You can enable/configure sending of email notifications to let you know if any errors trigger during automated security updates.
unattended:
reboot: false
send_email: false
email_to: [email protected]
email_on_error_only: false
Note: This functionality required sendmail
or mailx
If you run into errors, uncomment the - debug: msg="{{ ... }}"
statements.
Progress of the auto update process is logged and can be reviewed /var/log/unattended-upgrades
directory.