]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/roles/init-logcheck/tasks/main.yml
Feat: Add `init-logcheck`
[ansible.git] / playbooks / debian / roles / init-logcheck / tasks / main.yml
diff --git a/playbooks/debian/roles/init-logcheck/tasks/main.yml b/playbooks/debian/roles/init-logcheck/tasks/main.yml
new file mode 100644 (file)
index 0000000..a0960a5
--- /dev/null
@@ -0,0 +1,10 @@
+- name: Check logcheck
+  stat:
+    path: /etc/logcheck/logcheck.conf
+  register: logcheck_exists
+  changed_when: not logcheck_exists.stat.exists
+
+- name: Install logcheck if not installed
+  import_role:
+    name: logcheck
+  when: not logcheck_exists.stat.exists