forked from infra/ansible
27 lines
648 B
YAML
27 lines
648 B
YAML
---
|
|
- name: Install rkhunter (dnf)
|
|
ansible.builtin.package: name=rkhunter state=present
|
|
when: ansible_distribution_major_version|int != 10
|
|
notify:
|
|
- Run rkhunter
|
|
tags:
|
|
- rkhunter
|
|
- packages
|
|
|
|
- name: Rkhunter.conf
|
|
ansible.builtin.template: src=rkhunter.conf.j2 dest=/etc/rkhunter.conf mode=0640
|
|
when: ansible_distribution_major_version|int != 10
|
|
notify:
|
|
- Run rkhunter
|
|
tags:
|
|
- rkhunter
|
|
- config
|
|
|
|
- name: Rkhunter sysconfig
|
|
ansible.builtin.copy: src=rkhunter.sysconfig dest=/etc/sysconfig/rkhunter mode=0640
|
|
when: ansible_distribution_major_version|int != 10
|
|
notify:
|
|
- Run rkhunter
|
|
tags:
|
|
- rkhunter
|
|
- config
|