diff --git a/roles/unattended-upgrades/templates/apticron.conf.j2 b/roles/unattended-upgrades/templates/apticron.conf.j2 index 75c1e45..5f46c60 100644 --- a/roles/unattended-upgrades/templates/apticron.conf.j2 +++ b/roles/unattended-upgrades/templates/apticron.conf.j2 @@ -1,5 +1,6 @@ # {{ ansible_managed }} {% if unattended_upgrades_apticron_email is defined %} -EMAIL="{{ unattended_upgrades_apticron_email }}" +EMAIL="{{ unattended_upgrades_apticron_email | default('root') }}" +SYSTEM="{{ ansible_hostname }}" {% endif %}