summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2014-07-21 04:40:32 +0200
committerMatthieu Saulnier <fantom@fedoraproject.org>2014-07-21 04:40:32 +0200
commit262d6da6b48474741e05aa0336eb92a5fb0f9c32 (patch)
tree9ab686c8488e28ca3d2c5d6e129b35ab3c118e59
parentd5fb3e34fd515b7ce7fb9c93441a3fbb860c5aee (diff)
downloadplaybooks-ansible-262d6da6b48474741e05aa0336eb92a5fb0f9c32.tar.gz
playbooks-ansible-262d6da6b48474741e05aa0336eb92a5fb0f9c32.tar.xz
playbooks-ansible-262d6da6b48474741e05aa0336eb92a5fb0f9c32.zip
Add notify for rkhunter installation in common role
-rw-r--r--roles/common/handlers/main.yml1
-rw-r--r--roles/common/handlers/rkhunter.yml2
-rw-r--r--roles/common/tasks/rkhunter.yml3
3 files changed, 5 insertions, 1 deletions
diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml
index c99692e..272d412 100644
--- a/roles/common/handlers/main.yml
+++ b/roles/common/handlers/main.yml
@@ -1,2 +1,3 @@
- include: ssh.yml
- include: aide.yml
+- include: rkhunter.yml
diff --git a/roles/common/handlers/rkhunter.yml b/roles/common/handlers/rkhunter.yml
new file mode 100644
index 0000000..8d8767a
--- /dev/null
+++ b/roles/common/handlers/rkhunter.yml
@@ -0,0 +1,2 @@
+- name: Initialize rkhunter database
+ command: /usr/bin/rkhunter --propupd
diff --git a/roles/common/tasks/rkhunter.yml b/roles/common/tasks/rkhunter.yml
index fbaddeb..385b4c4 100644
--- a/roles/common/tasks/rkhunter.yml
+++ b/roles/common/tasks/rkhunter.yml
@@ -1,5 +1,6 @@
-- name: Installation de rkhunter
+- name: Installation du HIDS rkhunter
yum: name=rkhunter state=present
+ notify: propupd
- name: Activation de tests rkhunter
lineinfile: dest=/etc/rkhunter.conf state=present backrefs=yes