diff --git a/roles/ansible-ssh-hardening/templates/opensshd.conf.j2 b/roles/ansible-ssh-hardening/templates/opensshd.conf.j2 index 5edec89..50b4d80 100644 --- a/roles/ansible-ssh-hardening/templates/opensshd.conf.j2 +++ b/roles/ansible-ssh-hardening/templates/opensshd.conf.j2 @@ -164,7 +164,7 @@ AllowUsers {{ssh_allow_users}} DenyGroups {{ssh_deny_groups}} {% endif %} -{% if ssh_deny_groups -%} +{% if ssh_allow_groups -%} AllowGroups {{ssh_allow_groups}} {% endif %}