1
0
Fork 0
forked from infra/ansible

add dnf support to rkhunter role

This commit is contained in:
Tim Flink 2015-10-01 19:01:29 +00:00
commit 1cd3b30d6e

View file

@ -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