From 819e49ba8b49173eb3ac867fd7962dabc24d4c25 Mon Sep 17 00:00:00 2001 From: Drazen Date: Wed, 28 Aug 2024 12:46:04 +0200 Subject: [PATCH] Filebeat-restart-task-wazuh --- roles/debian/wazuh/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/debian/wazuh/tasks/main.yml b/roles/debian/wazuh/tasks/main.yml index 2514dc6b6..4deedc573 100644 --- a/roles/debian/wazuh/tasks/main.yml +++ b/roles/debian/wazuh/tasks/main.yml @@ -112,3 +112,8 @@ wazuh_custom_packages_installation_agent_enabled: false ansible_shell_allow_world_readable_temp: true when: wazuh.agent.install and not wazuh_agent_sources_installation.enabled + +- name: Restart filebeat at the end # If we do not, filebeat keeps using old certs and breaks connection with elasticsearch & dashboard stops showing data. + ansible.builtin.systemd: + name: filebeat + state: restarted