aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2024-08-23 20:20:36 +0200
committerGravatar Johannes Christ <[email protected]>2024-08-24 19:48:14 +0200
commit9a225fdd984c917c2d442a4511b5818252bae6c8 (patch)
tree9e911a566dcf65db0f5c33e2d890c057b79b01ca
parentRun saslauthd under the "sasl" user & group (diff)
Address horrible inefficiencies in SSH handlers
-rw-r--r--ansible/roles/ssh/handlers/main.yml13
1 files changed, 2 insertions, 11 deletions
diff --git a/ansible/roles/ssh/handlers/main.yml b/ansible/roles/ssh/handlers/main.yml
index 34f7a64..bc3cb2b 100644
--- a/ansible/roles/ssh/handlers/main.yml
+++ b/ansible/roles/ssh/handlers/main.yml
@@ -1,16 +1,7 @@
---
-- name: Reload ssh (Debian)
+- name: Reload ssh
service:
- name: ssh
+ name: "{{ (ansible_distribution == 'Rocky') | ternary('sshd', 'ssh') }}"
state: reloaded
- when: ansible_distribution == "Debian"
- tags:
- - role::ssh
-
-- name: Reload sshd (Rocky)
- service:
- name: sshd
- state: reloaded
- when: ansible_distribution == "Rocky"
tags:
- role::ssh