aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks/sshd.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/space_server/tasks/sshd.yml')
-rw-r--r--roles/space_server/tasks/sshd.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/space_server/tasks/sshd.yml b/roles/space_server/tasks/sshd.yml
index 75f865c..efbfa97 100644
--- a/roles/space_server/tasks/sshd.yml
+++ b/roles/space_server/tasks/sshd.yml
@@ -11,13 +11,13 @@
path: '/etc/ssh/sshd_config'
regexp: '{{ item.regexp }}'
line: '{{ item.line }}'
- notify:
- - restart sshd
with_items:
- regexp: '^PasswordAuthentication'
line: 'PasswordAuthentication no'
- regexp: '^#*GSSAPIAuthentication'
line: 'GSSAPIAuthentication no'
+ notify:
+ - restart sshd
- name: Enable sshd service
systemd: