You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: roles/debian/wazuh/tasks/main.yml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,7 @@
128
128
filebeat_exists: "{{ _service_list.stdout is search('filebeat.service') }}"
129
129
130
130
- name: Restart filebeat at the end. # If we do not, filebeat keeps using old certs and breaks connection with elasticsearch & dashboard stops showing data.
131
-
ansible.builtin.systemd:
131
+
ansible.builtin.systemd_service:
132
132
name: filebeat
133
133
state: restarted
134
134
when: filebeat_exists
@@ -161,13 +161,13 @@
161
161
when: "'wazuh-manager.service' in wazuh_service.stdout or 'wazuh-agent.service' in wazuh_service.stdout"
162
162
163
163
- name: Restart wazuh-manager to apply changes
164
-
ansible.builtin.systemd:
164
+
ansible.builtin.systemd_service:
165
165
name: wazuh-manager
166
166
state: restarted
167
167
when: "'wazuh-manager.service' in wazuh_service.stdout"
168
168
169
169
- name: Restart wazuh-agent to apply changes
170
-
ansible.builtin.systemd:
170
+
ansible.builtin.systemd_service:
171
171
name: wazuh-agent
172
172
state: restarted
173
173
when: "'wazuh-agent.service' in wazuh_service.stdout"
0 commit comments