From 084e118a93f70705f88774bd6ec627a881454a0b Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Thu, 28 Nov 2019 21:46:04 -0600 Subject: [PATCH] Set system name for apticron --- roles/unattended-upgrades/templates/apticron.conf.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 %}