diff --git a/files/rkhunter/rkhunter.conf.j2 b/files/rkhunter/rkhunter.conf.j2 index cba3845c5b..5cd2ac6e52 100644 --- a/files/rkhunter/rkhunter.conf.j2 +++ b/files/rkhunter/rkhunter.conf.j2 @@ -558,13 +558,8 @@ SUSPSCAN_THRESH=200 # specified, then RKH will assume the O/S release information is on the # first non-blank line of the file. # -{% if is_fedora == 'True' %} # {{ is_fedora }} -OS_VERSION_FILE=/etc/fedora-release -{% else %} -# {{ is_fedora }} -OS_VERSION_FILE=/etc/redhat-release -{% endif %} +OS_VERSION_FILE=/etc/{{ ansible_distribution }}-release # # The following two options can be used to whitelist files and directories