From 4ffe0a21af5cecf72c007d331c002785648214d1 Mon Sep 17 00:00:00 2001 From: Thomas Widhalm Date: Wed, 25 Sep 2024 09:49:14 +0200 Subject: [PATCH] Reload daemons for Logstash restart This might make reloads a bit slower but it seems to be the only chance to deal with changes in the Logstash unit file. We're not managing this file witht the collection, so changing it manually is fine. If someone does, we need to reload the unit file. fixes #342 --- roles/logstash/handlers/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/logstash/handlers/main.yml b/roles/logstash/handlers/main.yml index 08b3b71b..afe5a438 100644 --- a/roles/logstash/handlers/main.yml +++ b/roles/logstash/handlers/main.yml @@ -4,6 +4,7 @@ ansible.builtin.service: name: logstash state: restarted + daemon-reload: true when: - logstash_enable | bool - not logstash_freshstart.changed | bool @@ -12,4 +13,5 @@ ansible.builtin.service: name: logstash state: restarted + daemon-reload: true when: not logstash_config_autoreload and logstash_enable | bool