mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-30 08:50:55 +08:00
21 lines
403 B
YAML
21 lines
403 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|success
|
|
|
|
|
|
|
|
|
|
|