CHANGE: moves ssh server restart into handlers

This commit is contained in:
2026-08-11 14:21:34 +04:00
parent 39408cab31
commit 26c6bc610f
2 changed files with 28 additions and 13 deletions
+13
View File
@@ -0,0 +1,13 @@
---
- name: Restart ssh-server Debian
ansible.builtin.service:
name: sshd
state: restarted
changed_when: false # It's just a handler, no need to increase 'changed' counter
- name: Restart ssh-server Ubuntu
ansible.builtin.service:
name: ssh
state: restarted
changed_when: false