ansible/roles/rkhunter/tasks/main.yml
Karsten Hopp c9ed62ac32 update ansible_distribution_major_version conditionals
Signed-off-by: Karsten Hopp <karsten@redhat.com>
2020-04-24 21:34:10 +02:00

26 lines
574 B
YAML

---
- name: install rkhunter (dnf)
package: name=rkhunter state=present
notify:
- run rkhunter
tags:
- rkhunter
- packages
when: ansible_distribution_major_version|int >= 29 and ansible_distribution is 'Fedora' and ansible_cmdline.ostree is not defined
- name: rkhunter.conf
template: src=rkhunter.conf.j2 dest=/etc/rkhunter.conf mode=0640
notify:
- run rkhunter
tags:
- rkhunter
- config
- name: rkhunter sysconfig
copy: src=rkhunter.sysconfig dest=/etc/sysconfig/rkhunter mode=0640
notify:
- run rkhunter
tags:
- rkhunter
- config