forked from infra/ansible
make a playbook just to run rkhunter for boxes which didnt before
This commit is contained in:
parent
017df9ea44
commit
670dc663a2
1 changed files with 20 additions and 0 deletions
20
playbooks/rkhunter_only.yml
Normal file
20
playbooks/rkhunter_only.yml
Normal 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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue