aboutsummaryrefslogtreecommitdiffstats
path: root/roles/fedora/tasks/sshd.yml
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2021-01-14 17:15:12 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2021-01-17 17:02:09 +0100
commit517597c0f34051711f20d0d4e0cf8a3bbdbfab0d (patch)
treeb79708e6df8152a290a7b9d60e8d797b038aba9f /roles/fedora/tasks/sshd.yml
parente4c66ce7cfd4c430e63d19ded8bbc1a5a5f64963 (diff)
downloadlabitat-ansible-517597c0f34051711f20d0d4e0cf8a3bbdbfab0d.tar.gz
labitat-ansible-517597c0f34051711f20d0d4e0cf8a3bbdbfab0d.tar.xz
labitat-ansible-517597c0f34051711f20d0d4e0cf8a3bbdbfab0d.zip
space_server: update for Fedora 33
Diffstat (limited to 'roles/fedora/tasks/sshd.yml')
-rw-r--r--roles/fedora/tasks/sshd.yml6
1 files changed, 3 insertions, 3 deletions
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