Replaces many references to command: with ansible.builtin.command Signed-off-by: Ryan Lerch <rlerch@redhat.com>
16 lines
435 B
YAML
16 lines
435 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
|
|
ansible.builtin.command: /usr/bin/test -f /usr/bin/rkhunter
|
|
register: rkhunter
|
|
ignore_errors: true
|
|
|
|
- name: Run rkhunter --propupd
|
|
ansible.builtin.command: /usr/bin/rkhunter --propupd
|
|
when: rkhunter is success
|