Skip to content

Commit

Permalink
Merge pull request #135 from klemens-st/sshd-debian-handlers
Browse files Browse the repository at this point in the history
Fix sshd handlers for Debian 12.
  • Loading branch information
geerlingguy authored Mar 3, 2025
2 parents 3522093 + e7b5b93 commit 8376f1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
- name: reload systemd
systemd_service:
daemon_reload: true

- name: restart ssh
service:
name: "{{ security_sshd_name }}"
Expand Down
4 changes: 3 additions & 1 deletion tasks/ssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
line: "GSSAPIAuthentication {{ security_ssh_gss_api_authentication }}"
- regexp: "^X11Forwarding"
line: "X11Forwarding {{ security_ssh_x11_forwarding }}"
notify: restart ssh
notify:
- reload systemd
- restart ssh

- name: Add configured users allowed to connect over ssh
lineinfile:
Expand Down

0 comments on commit 8376f1f

Please sign in to comment.