forked from infra/ansible
update ansible_distribution_major_version conditionals
Signed-off-by: Karsten Hopp <karsten@redhat.com>
This commit is contained in:
parent
d982c06fde
commit
c9ed62ac32
45 changed files with 460 additions and 175 deletions
|
|
@ -1,13 +1,4 @@
|
|||
---
|
||||
- name: install rkhunter (yum)
|
||||
package: name=rkhunter state=present
|
||||
notify:
|
||||
- run rkhunter
|
||||
tags:
|
||||
- rkhunter
|
||||
- packages
|
||||
when: ansible_distribution_major_version|int < 22
|
||||
|
||||
- name: install rkhunter (dnf)
|
||||
package: name=rkhunter state=present
|
||||
notify:
|
||||
|
|
@ -15,7 +6,7 @@
|
|||
tags:
|
||||
- rkhunter
|
||||
- packages
|
||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
when: ansible_distribution_major_version|int >= 29 and ansible_distribution is 'Fedora' and ansible_cmdline.ostree is not defined
|
||||
|
||||
|
||||
- name: rkhunter.conf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue