- name: create journalwatch config dir
file: path=/root/.config/journalwatch state=directory
- name: install journalwatch config files
- copy:
- src: files/{{item}}
+ template:
+ src: templates/{{item}}
dest: /root/.config/journalwatch/{{item}}
loop:
- config
- patterns
+ tags: journalwatch-patterns
- name: delete old journalwatch crontab entry
file: path=/etc/cron.d/journalwatch state=absent
- name: create journalwatch crontab entry