diff --git a/templates/sshd_config.j2 b/templates/sshd_config.j2 index 2cc7575..cc326b2 100644 --- a/templates/sshd_config.j2 +++ b/templates/sshd_config.j2 @@ -106,7 +106,8 @@ UsePAM yes # User Authentication {% if sshd__restrict_users -%} AllowUsers {{ sshd__allowed_users|join(' ') }} -{%- endif %} +{% endif %} + {% if sshd__restrict_groups -%} AllowUsers {{ sshd__allowed_groups|join(' ') }} {%- endif %} diff --git a/vars/main.yml b/vars/main.yml index 7a5eb74..54a504c 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,3 +1,3 @@ --- -playbook_version_number: 4098 # should be over ninethousand +playbook_version_number: 4099 # should be over ninethousand playbook_version_path: 'role-sshd_chaos-bodensee_github.com.version'