forked from infra/ansible
add dnf support to rkhunter role
This commit is contained in:
parent
da3bd1044b
commit
1cd3b30d6e
1 changed files with 12 additions and 1 deletions
|
|
@ -1,11 +1,22 @@
|
|||
---
|
||||
- name: install rkhunter
|
||||
- name: install rkhunter (yum)
|
||||
yum: name=rkhunter state=present
|
||||
notify:
|
||||
- run rkhunter
|
||||
tags:
|
||||
- rkhunter
|
||||
- packages
|
||||
when: ansible_distribution_major_version|int < 22
|
||||
|
||||
- name: install rkhunter (dnf)
|
||||
dnf: name=rkhunter state=present
|
||||
notify:
|
||||
- run rkhunter
|
||||
tags:
|
||||
- rkhunter
|
||||
- packages
|
||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
|
||||
|
||||
- name: rkhunter.conf
|
||||
template: src=rkhunter.conf.j2 dest=/etc/rkhunter.conf mode=0640
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue