From 311893c3bc2bbd18669b5c80bf884e9d25889b74 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Sat, 22 Sep 2018 15:29:45 +0200 Subject: space_server: update for Fedora 29 --- roles/space_server/tasks/sshd.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'roles/space_server/tasks/sshd.yml') diff --git a/roles/space_server/tasks/sshd.yml b/roles/space_server/tasks/sshd.yml index 63f3367..176ee5a 100644 --- a/roles/space_server/tasks/sshd.yml +++ b/roles/space_server/tasks/sshd.yml @@ -36,9 +36,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 -- cgit v1.2.1