From 517597c0f34051711f20d0d4e0cf8a3bbdbfab0d Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Thu, 14 Jan 2021 17:15:12 +0100 Subject: space_server: update for Fedora 33 --- roles/fedora/tasks/sshd.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'roles/fedora/tasks/sshd.yml') diff --git a/roles/fedora/tasks/sshd.yml b/roles/fedora/tasks/sshd.yml index 91f08ec..fc46c07 100644 --- a/roles/fedora/tasks/sshd.yml +++ b/roles/fedora/tasks/sshd.yml @@ -29,11 +29,11 @@ regexp: '{{ item.regexp }}' line: '{{ item.line }}' with_items: - - regexp: '^[# ]*PermitRootLogin' + - regexp: '^#*PermitRootLogin' line: 'PermitRootLogin no' - - regexp: '^PasswordAuthentication' + - regexp: '^#*PasswordAuthentication' line: 'PasswordAuthentication no' - - regexp: '^[# ]*GSSAPIAuthentication' + - regexp: '^#*GSSAPIAuthentication' line: 'GSSAPIAuthentication no' notify: restart sshd -- cgit v1.2.1