diff --git a/debian-updates/tasks/main.yml b/debian-updates/tasks/main.yml
index 11294ce37ff9e0f61bf26b010514d7dd4806a148..53075205340dec4f5813784e908fcb2ce69a9625 100644
--- a/debian-updates/tasks/main.yml
+++ b/debian-updates/tasks/main.yml
@@ -3,8 +3,21 @@
 
 - name: ensure any dependencies are available
   apt:
-    name: python3
+    name: "{{ item }}"
     state: installed
+  with_items:
+    - python3
+    - fortune-mod
+    - fortunes
+    - fortunes-off
+  tags:
+    - debian-updates
+
+- name: ensure fortune is in PATH
+  file:
+    state: link
+    path: /usr/local/bin/fortune
+    src: /usr/games/fortune
   tags:
     - debian-updates
 
diff --git a/debian-updates/templates/config.py.j2 b/debian-updates/templates/config.py.j2
index 52fa054c0fbb0753c74c4a5f2a4c100fbba67df9..eb3c34f58516aa9da23ff20c14ba6e4082ce773e 100644
--- a/debian-updates/templates/config.py.j2
+++ b/debian-updates/templates/config.py.j2
@@ -4,7 +4,7 @@ lock_file = '/opt/debian-updates/.json-sync.lock'
 report_file = '/opt/debian-updates/apticron.json'
 tracker_file = '/opt/debian-updates/security.json'
 
-notify_subject = '{{ (domain|splitext|first).upper() }} daily update report on '+str(datetime.date.today())
+notify_subject = '{{ (domain.split(".")|first).upper() }} daily update report on '+str(datetime.date.today())
 notify_from = '{{ debupdates_from }}'
 notify_recipient = ['{{ debupdates_to|join("', '") }}']
 notify_header = 'Debian Update Notifier/v0.1'