From 03aff34bd2def003d3b48c23048acac04fdf6c2d Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 27 Sep 2019 21:26:41 +0000 Subject: [PATCH] rkhunter: fix the fact that f30+ don't install ifup/ifdown from network-scripts anymore. Signed-off-by: Kevin Fenzi --- roles/rkhunter/templates/rkhunter.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/rkhunter/templates/rkhunter.conf.j2 b/roles/rkhunter/templates/rkhunter.conf.j2 index c2f08d8580..6b41478c84 100644 --- a/roles/rkhunter/templates/rkhunter.conf.j2 +++ b/roles/rkhunter/templates/rkhunter.conf.j2 @@ -645,7 +645,7 @@ SCRIPTWHITELIST=/usr/bin/whatis SCRIPTWHITELIST=/usr/bin/ldd SCRIPTWHITELIST=/usr/bin/groups SCRIPTWHITELIST=/usr/bin/GET -{% if inventory_hostname.startswith(('osbs')) %} +{% if ansible_distribution_major_version|int >= 30 %} # no network-scripts on newest fedora #SCRIPTWHITELIST=/sbin/ifup #SCRIPTWHITELIST=/sbin/ifdown