This role will install and configure the Wazuh Agent service.
This role is compatible with:
- Red Hat
- CentOS
- Fedora
- Debian
- Ubuntu
-
wazuh_agent
: Wazuh agent local configurationwazuh_agent_activeresponse
: Settings for active-response sectionwazuh_agent_client
: Settings for client sectionwazuh_agent_clientbuffer
: Settings for client_buffer sectionwazuh_agent_labels
: Settings for labels sectionwazuh_agent_localfile
: Settings for localfile sectionwazuh_agent_logformat
: Log format settingwazuh_agent_rootcheck
: Settings for rootcheck sectionwazuh_agent_socket
: Settings for socket sectionwazuh_agent_syscheck
: Settings for syscheck section
-
wazuh_authd
: Settings for Wazuh agent registrationwazuh_authd_address
: Address of ossec-authd or ossec-api listenerwazuh_authd_apienable
: Register via RESTful-APIwazuh_authd_apihttps
: True if Wazuh API is secured by SSL.wazuh_authd_apipass
: Password for API authenticationwazuh_authd_apiport
: API portwazuh_authd_apiuser
: Username for API authenticationwazuh_authd_enable
: Register via authdwazuh_authd_pass
: Registration passwordwazuh_authd_port
: Port for ossec-authd listenerwazuh_authd_sslauto
: Enable SSL auto-negotiationwazuh_authd_sslca
: Filename of CA certificate (in/var/ossec/etc
) used to verify the server.wazuh_authd_sslcert
: Filename of agent certificate (in/var/ossec/etc
).
-
wazuh_purge
: Completely remove the/var/ossec
directory before installation. (defaults tofalse
). -
wazuh_repo_add
: Add the wazuh repo prior to installation. -
wazuh_repo_remove
: Remove the wazuh repo after installation.
- hosts: all:!wazuh-manager
roles:
- 'ansible-wazuh-agent'
vars:
wazuh_agent_client_server_address: 'wazuh-manager.example.com'
wazuh_agent_client_server_protocol: 'tcp'
wazuh_authd_enable: true
wazuh_authd_pass: 'S3CR3T'
BSD