ansible/playbooks/rkhunter_only.yml

17 lines
435 B
YAML
Raw Normal View History

# 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
ansible.builtin.command: /usr/bin/test -f /usr/bin/rkhunter
register: rkhunter
ignore_errors: true
2016-08-08 19:36:31 +00:00
- name: Run rkhunter --propupd
ansible.builtin.command: /usr/bin/rkhunter --propupd
2018-04-04 19:24:21 +00:00
when: rkhunter is success