cellinfo
/
ansible.apt
Archived
2
0
Fork 0
This repository has been archived on 2020-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
ansible.apt/templates/etc/apt/apt.conf.d/50unattended-upgrades.conf.j2

31 lines
1.1 KiB
Django/Jinja

# {{ ansible_managed }}
# Automatically upgrade packages from these (origin:archive) pairs
Unattended-Upgrade::Allowed-Origins {
"${distro_id}:${distro_codename}-security";
#"${distro_id}:${distro_codename}-updates";
#"${distro_id}:${distro_codename}-proposed";
#"${distro_id}:${distro_codename}-backports";
};
# List of packages to not update (regexp are supported)
Unattended-Upgrade::Package-Blacklist {
{% for package in apt_unattended_upgrades_blacklist %}
"{{ package }}";
{% endfor %}
};
# Send email to this address for problems or packages upgrades
# If empty or unset then no email is sent, make sure that you
# have a working mail setup on your system. A package that provides
# 'mailx' must be installed. E.g. "user@example.com"
Unattended-Upgrade::Mail "root";
# Set this value to "true" to get emails only on errors. Default
# is to always send a mail if Unattended-Upgrade::Mail is set
Unattended-Upgrade::MailOnlyOnError "true";
# Do automatic removal of new unused dependencies after the upgrade
# (equivalent to apt-get autoremove)
#Unattended-Upgrade::Remove-Unused-Dependencies "false";