1 - name: install journalwatch dependencies
2 apt: name=python3-systemd state=latest
3 - name: install journalwatch
5 dest: /root/journalwatch
6 repo: 'https://github.com/The-Compiler/journalwatch.git'
7 version: b62f223bc36eabc193cfcf0d309d284da4f66463
8 - name: create journalwatch config dir
9 file: path=/root/.config/journalwatch state=directory
10 - name: install journalwatch config files
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"