File tree 4 files changed +7
-1
lines changed
4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
+ - name : systemd reload
3
+ ansible.builtin.command : systemctl daemon-reload
2
4
- name : restart ssh
3
5
service :
4
6
name : " {{ security_sshd_name }}"
Original file line number Diff line number Diff line change 29
29
line : " GSSAPIAuthentication {{ security_ssh_gss_api_authentication }}"
30
30
- regexp : " ^X11Forwarding"
31
31
line : " X11Forwarding {{ security_ssh_x11_forwarding }}"
32
- notify : restart ssh
32
+ notify : " {{ security_sshd_handlers }} "
33
33
34
34
- name : Add configured users allowed to connect over ssh
35
35
lineinfile :
Original file line number Diff line number Diff line change 1
1
---
2
2
security_ssh_config_path : /etc/ssh/sshd_config
3
3
security_sshd_name : ssh
4
+ security_sshd_handlers :
5
+ - restart ssh
6
+ - systemd reload
Original file line number Diff line number Diff line change 1
1
---
2
2
security_ssh_config_path : /etc/ssh/sshd_config
3
3
security_sshd_name : sshd
4
+ security_sshd_handlers : restart ssh
You can’t perform that action at this time.
0 commit comments