diff --git a/roles/rkhunter/templates/rkhunter.conf.j2 b/roles/rkhunter/templates/rkhunter.conf.j2 index 705517580d..52cb350c0a 100644 --- a/roles/rkhunter/templates/rkhunter.conf.j2 +++ b/roles/rkhunter/templates/rkhunter.conf.j2 @@ -165,7 +165,13 @@ ALLOW_SSH_ROOT_USER=without-password # configuration file, then a value of '2' may be set here in order to # suppress a warning message. This option has a default value of '0'. # +{% if ansible_distribution == 'Fedora' %} +# Fedora doesn't set protocol in ssh config +ALLOW_SSH_PROT_V1=2 +{% else %} +# RHEL sets proto to v2 only ALLOW_SSH_PROT_V1=0 +{% endif %} # # This setting tells rkhunter the directory containing the SSH configuration