ansible/roles/unattended-upgrades/templates/auto-upgrades.j2

15 lines
489 B
Django/Jinja

// {{ ansible_managed }}
{% if unattended_upgrades_update_package_lists %}
APT::Periodic::Update-Package-Lists "1";
{% endif %}
{% if unattended_upgrades_download_upgradable_packages %}
APT::Periodic::Download-Upgradeable-Packages "1";
{% endif %}
{% if unattended_upgrades_autoclean_interval %}
APT::Periodic::AutocleanInterval "{{ unattended_upgrades_autoclean_interval }}";
{% endif %}
{% if unattended_upgrades_unattended_upgrade %}
APT::Periodic::Unattended-Upgrade "1";
{% endif %}