Infra_mgmt/roles/unattended-upgrades/templates/unattended-upgrades.j2

24 lines
913 B
Plaintext
Raw Permalink Normal View History

2023-05-07 12:01:52 +02:00
Unattended-Upgrade::Origins-Pattern {
"origin=Debian,codename=${distro_codename}-updates";
"origin=Debian,codename=${distro_codename},label=Debian";
"origin=Debian,codename=${distro_codename},label=Debian-Security";
"origin=Debian,codename=${distro_codename}-security,label=Debian-Security";
{% for list in additional_lists %}
"{{ list }}";
{% endfor %}
};
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Verbose "2";
Unattended-Upgrade::Mail "{{ smtp_username }}";
Unattended-Upgrade::Sender "{{ upgrades_sender }}";
Unattended-Upgrade::MailReport "on-change";
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
Unattended-Upgrade::Remove-New-Unused-Dependencies "true";
Unattended-Upgrade::Remove-Unused-Dependencies "false";