ansible/playbooks/rkhunter_only.yml
Ryan Lerch 462176464b ansiblelint fixes-- fqcn[action-core] - command to ansible.builtin.command
Replaces many references to  command: with ansible.builtin.command

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:26:47 +10:00

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