Skip to content

Commit a9dd520

Browse files
committed
add filbeat restart to complement the go-w on manifest.yml
1 parent 4d167d2 commit a9dd520

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

etc/kayobe/ansible/deployment/wazuh-manager.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,15 @@
134134
ansible.builtin.file:
135135
path: "/usr/share/filebeat/module/wazuh/alerts/manifest.yml"
136136
mode: "go-w"
137+
notify:
138+
- Restart filebeat
137139

138140
handlers:
141+
- name: Restart filebeat
142+
ansible.builtin.service:
143+
name: filebeat
144+
state: restarted
145+
139146
- name: Restart wazuh
140147
ansible.builtin.service:
141148
name: wazuh-manager

0 commit comments

Comments
 (0)