Run rkhunter --propupd when installing or updating it's config

This commit is contained in:
Kevin Fenzi 2014-06-23 04:09:25 +00:00
parent 1ebbc5ffce
commit e6e759d969
3 changed files with 10 additions and 4 deletions

View file

@ -100,3 +100,6 @@
- name: restart supervisord
service: name=supervisord state=restarted
- name: run rkhunter
command: rkhunter --propupd

View file

@ -21,7 +21,7 @@
- name: copy sundry nuancier configuration
template: src={{ item.file }}
dest="{{ item.location }}/{{ item.dest }}"
dest={{ item.location }}/{{ item.dest }}
owner=apache group=apache mode=0600
with_items:
- { file: nuancier_admin.cfg, location: /etc/nuancier, dest: nuancier.cfg }

View file

@ -1,18 +1,21 @@
---
- name: install rkhunter
yum: name=rkhunter state=present
notify:
- run rkhunter
tags:
- packages
- name: rkhunter.conf
template: src=rkhunter.conf.j2 dest=/etc/rkhunter.conf mode=0640
notify:
- run rkhunter
tags:
- config
- name: rkhunter sysconfig
copy: src=rkhunter.sysconfig dest=/etc/sysconfig/rkhunter mode=0640
notify:
- run rkhunter
tags:
- config