add tag to only deploy journalwatch patterns (and config)
[ansible.git] / roles / journalwatch / tasks / main.yml
index 3a7afcba18ccb21414f3c62d77203cebb92ff61f..8e64af3f87378dd210f9a40cead37442f1377bbf 100644 (file)
@@ -8,12 +8,13 @@
 - 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