journalwatch: bind
[ansible.git] / roles / journalwatch / tasks / main.yml
1 - name: install journalwatch dependencies
2   apt: name=python3-systemd state=latest
3 - name: install journalwatch
4   git:
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
11   template:
12     src: templates/{{item}}
13     dest: /root/.config/journalwatch/{{item}}
14   loop:
15   - config
16   - patterns
17   tags: journalwatch-patterns
18 - name: delete old journalwatch crontab entry
19   file: path=/etc/cron.d/journalwatch state=absent
20 - name: create journalwatch crontab entry
21   cron:
22     name: "journalwatch"
23     minute: "*/10"
24     job: "/root/journalwatch/journalwatch.py mail"