1
0
Fork 0
forked from infra/ansible

make a playbook just to run rkhunter for boxes which didnt before

This commit is contained in:
Stephen Smoogen 2014-03-20 20:10:40 +00:00
commit 670dc663a2

View file

@ -0,0 +1,20 @@
# requires --extra-vars="target='host1;host2;group etc'"
- name: run rkhunter for times when rkhunter didn't seem to run.
hosts: "{{ target }}"
user: root
tasks:
- name: check for rkhunter
command: /usr/bin/test -f /usr/bin/rkhunter
register: rkhunter
ignore_errors: true
- name: run rkhunter --propupd
command: /usr/bin/rkhunter --propupd
when: rkhunter|success