diff --git a/roles/rkhunter/templates/rkhunter.conf.j2 b/roles/rkhunter/templates/rkhunter.conf.j2 index eb19b2b950..aab5fed605 100644 --- a/roles/rkhunter/templates/rkhunter.conf.j2 +++ b/roles/rkhunter/templates/rkhunter.conf.j2 @@ -311,6 +311,9 @@ ALLOWHIDDENDIR=/dev/.udev/rules.d {% if ansible_hostname.startswith('fed-cloud') %} ALLOWHIDDENDIR=/etc/.git {% endif %} +{% if inventory_hostname in groups['ipa'] or inventory_hostname in groups['ipa-stg'] %} +ALLOWHIDDENDIR=/etc/.java +{% endif %} # # Allow the specified hidden files.