ansible/playbooks/rkhunter_only.yml
2018-04-04 19:24:21 +00:00

15 lines
399 B
YAML

# 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 is success