summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/rkhunter.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/common/tasks/rkhunter.yml')
-rw-r--r--roles/common/tasks/rkhunter.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/common/tasks/rkhunter.yml b/roles/common/tasks/rkhunter.yml
new file mode 100644
index 0000000..144430e
--- /dev/null
+++ b/roles/common/tasks/rkhunter.yml
@@ -0,0 +1,22 @@
+- name: Install rkhunter
+ apt: pkg={{ item }}
+ with_items:
+ - rkhunter
+ - curl
+ - iproute
+ - lsof
+ - unhide
+ - unhide.rb
+
+- name: Configure rkhunter
+ copy: src=etc/{{ item }}
+ dest=/etc/{{ item }}
+ owner=root group=root
+ mode=0644
+ with_items:
+ - rkhunter.conf
+ - default/rkhunter
+ notify:
+ # This might not always be necessary, but it's not like we would
+ # change the config every day...
+ - Update rkhunter's data file