1 - name: install journalwatch dependencies
2 apt: name=python3-systemd state=latest
3 - name: install journalwatch
5 repo: 'https://github.com/The-Compiler/journalwatch.git'
6 version: b62f223bc36eabc193cfcf0d309d284da4f66463
7 dest: /root/journalwatch
8 - name: create journalwatch config dir
9 file: path=/root/.config/journalwatch state=directory
10 - name: install journalwatch config files
12 src: templates/{{item}}
13 dest: /root/.config/journalwatch/{{item}}
17 - name: delete old journalwatch crontab entry
18 file: path=/etc/cron.d/journalwatch state=absent
19 - name: create journalwatch crontab entry
23 job: "/root/journalwatch/journalwatch.py mail"