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
This role installs and configures the Wazuh agent for host-based security monitoring. The agent enrolls automatically with the configured Wazuh manager using the APT repository method.
4
+
5
+
## Requirements
6
+
7
+
- Debian or Ubuntu target host
8
+
- Network connectivity from the target to the Wazuh manager on port 1514 (agent events) and 1515 (enrollment)
9
+
10
+
## Role Variables
11
+
12
+
Default variables are defined in [defaults/main.yml](defaults/main.yml)
13
+
14
+
| Variable | Description | Default |
15
+
|----------|-------------|---------|
16
+
|`wazuh_agent_manager_host`| Hostname or IP of the Wazuh manager |`wazuh.ethquokkaops.io`|
17
+
18
+
## Dependencies
19
+
20
+
None
21
+
22
+
## Example Playbook
23
+
24
+
```yaml
25
+
- hosts: all
26
+
become: true
27
+
roles:
28
+
- role: ethdevops.infrastructure.wazuh_agent
29
+
```
30
+
31
+
To override the manager host:
32
+
33
+
```yaml
34
+
- hosts: all
35
+
become: true
36
+
roles:
37
+
- role: ethdevops.infrastructure.wazuh_agent
38
+
vars:
39
+
wazuh_agent_manager_host: "wazuh.example.com"
40
+
```
41
+
42
+
To disable the agent for specific hosts, set `wazuh_agent_enabled: false` in the relevant host or group vars.
0 commit comments