Skip to content
Snippets Groups Projects
Commit 7dce5a57 authored by Lars Beckers's avatar Lars Beckers
Browse files

debian-updates: install missing pkgs, fix config template

parent 8bd5a7f7
No related branches found
No related tags found
No related merge requests found
...@@ -3,8 +3,21 @@ ...@@ -3,8 +3,21 @@
- name: ensure any dependencies are available - name: ensure any dependencies are available
apt: apt:
name: python3 name: "{{ item }}"
state: installed 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: tags:
- debian-updates - debian-updates
......
...@@ -4,7 +4,7 @@ lock_file = '/opt/debian-updates/.json-sync.lock' ...@@ -4,7 +4,7 @@ lock_file = '/opt/debian-updates/.json-sync.lock'
report_file = '/opt/debian-updates/apticron.json' report_file = '/opt/debian-updates/apticron.json'
tracker_file = '/opt/debian-updates/security.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_from = '{{ debupdates_from }}'
notify_recipient = ['{{ debupdates_to|join("', '") }}'] notify_recipient = ['{{ debupdates_to|join("', '") }}']
notify_header = 'Debian Update Notifier/v0.1' notify_header = 'Debian Update Notifier/v0.1'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment