Fix handlers

This commit is contained in:
Alexander Gorelyshev
2026-06-08 14:14:09 +04:00
parent b87da747a7
commit 37222f515e
7 changed files with 24 additions and 13 deletions

View File

@@ -10,7 +10,7 @@
# NOTE: order of preference for openssh-server ed25519 -> rsa
- name: "Algorithms | enable ed25519 authentication algorithm"
notify: Restart sshd
notify: "Restart ssh"
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config
regexp: '^HostKey /etc/ssh/ssh_host_ed25519_key'
@@ -18,7 +18,7 @@
validate: sshd -f %s -t
- name: "Algorithms | enable the RSA authentication algorithm"
notify: Restart sshd
notify: "Restart ssh"
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config
regexp: '^HostKey /etc/ssh/ssh_host_rsa_key'
@@ -26,7 +26,7 @@
validate: sshd -f %s -t
- name: "Algorithms | disable the ECDSA algorithm (deemed to be less safe)"
notify: Restart sshd
notify: "Restart ssh"
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config
regexp: '^HostKey /etc/ssh/ssh_host_ecdsa_key'
@@ -34,7 +34,7 @@
validate: sshd -f %s -t
- name: "Algorithms | disable the DSA algorithm (considered to be defunct)"
notify: Restart sshd
notify: "Restart ssh"
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config
regexp: '^HostKey /etc/ssh/ssh_host_dsa_key'