X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/8c38100fe97219ec3be527e528b59a8029368274..115d3cca0dcddd5c843d000e771e2de275e826a1:/roles/journalwatch/tasks/main.yml?ds=sidebyside diff --git a/roles/journalwatch/tasks/main.yml b/roles/journalwatch/tasks/main.yml index 3a7afcb..5621a8f 100644 --- a/roles/journalwatch/tasks/main.yml +++ b/roles/journalwatch/tasks/main.yml @@ -1,23 +1,2 @@ -- name: install journalwatch dependencies - apt: name=python3-systemd state=latest -- name: install journalwatch - git: - dest: /root/journalwatch - repo: 'https://github.com/The-Compiler/journalwatch.git' - version: b62f223bc36eabc193cfcf0d309d284da4f66463 -- name: create journalwatch config dir - file: path=/root/.config/journalwatch state=directory -- name: install journalwatch config files - template: - src: templates/{{item}} - dest: /root/.config/journalwatch/{{item}} - with_items: - - config - - patterns -- name: delete old journalwatch crontab entry - file: path=/etc/cron.d/journalwatch state=absent -- name: create journalwatch crontab entry - cron: - name: "journalwatch" - minute: "*/10" - job: "/root/journalwatch/journalwatch.py mail" +- import_tasks: journalwatch.yml + tags: journalwatch