aboutsummaryrefslogtreecommitdiffstats
path: root/roles/fedora/tasks/sshd.yml
diff options
context:
space:
mode:
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