add tag to only deploy journalwatch patterns (and config)
[ansible.git] / roles / journalwatch / tasks / main.yml
index 773a2b20a8d6672276e776a7ed8dc9ac1692afab..8e64af3f87378dd210f9a40cead37442f1377bbf 100644 (file)
@@ -2,18 +2,19 @@
   apt: name=python3-systemd state=latest
 - name: install journalwatch
   git:
+    dest: /root/journalwatch
     repo: 'https://github.com/The-Compiler/journalwatch.git'
     version: b62f223bc36eabc193cfcf0d309d284da4f66463
-    dest: /root/journalwatch
 - name: create journalwatch config dir
   file: path=/root/.config/journalwatch state=directory
 - name: install journalwatch config files
-  template:
-    src: templates/{{item}}
+  copy:
+    src: files/{{item}}
     dest: /root/.config/journalwatch/{{item}}
-  with_items:
+  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