Fix bug in unattended-upgrades

This commit is contained in:
Ryan Cavicchioni 2022-08-30 06:44:56 -05:00
parent 54e81e8755
commit ebfcf3301e
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# {{ ansible_managed }}
{% if unattended_upgrades_apticron_email is defined %}
{% if unattended_upgrades_apticron_email %}
EMAIL="{{ unattended_upgrades_apticron_email | default('root') }}"
SYSTEM="{{ ansible_hostname }}"
{% endif %}

View File

@ -26,7 +26,7 @@ Unattended-Upgrade::MinimalSteps "{{ unattended_upgrades_minimal_steps | lower }
{% if unattended_upgrades_install_on_shutdown is defined %}
Unattended-Upgrade::InstallOnShutdown "{{ unattended_upgrades_install_on_shutdown | lower }}";
{% endif %}
{% if unattended_upgrades_mail is defined %}
{% if unattended_upgrades_mail %}
Unattended-Upgrade::Mail "{{ unattended_upgrades_mail }}";
{% endif %}
{% if unattended_upgrades_mail_only_on_error is defined %}