make base a role
[ansible.git] / roles / journalwatch / tasks / journalwatch.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   copy:
12     src: files/{{item}}
13     dest: /root/.config/journalwatch/{{item}}
14   loop:
15   - config
16   - patterns
17 - name: delete old journalwatch crontab entry
18   file: path=/etc/cron.d/journalwatch state=absent
19 - name: create journalwatch crontab entry
20   cron:
21     name: "journalwatch"
22     minute: "*/10"
23     job: "/root/journalwatch/journalwatch.py mail"