aboutsummaryrefslogtreecommitdiffstats
path: root/roles/debian/tasks/sshd.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/debian/tasks/sshd.yml')
-rw-r--r--roles/debian/tasks/sshd.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/debian/tasks/sshd.yml b/roles/debian/tasks/sshd.yml
index c342604..03f3279 100644
--- a/roles/debian/tasks/sshd.yml
+++ b/roles/debian/tasks/sshd.yml
@@ -29,9 +29,11 @@
regexp: '{{ item.regexp }}'
line: '{{ item.line }}'
with_items:
+ - regexp: '^[# ]*PermitRootLogin'
+ line: 'PermitRootLogin no'
- regexp: '^[# ]*PasswordAuthentication'
line: 'PasswordAuthentication no'
- - regexp: '^#*GSSAPIAuthentication'
+ - regexp: '^[# ]*GSSAPIAuthentication'
line: 'GSSAPIAuthentication no'
notify: restart sshd