A script that gets the version of the agent. Query if there is local_internal_options.conf, if it does not exist, create the file. If the agent version is equal to 3.1 or higher, add to the file: # Wazuh Command Module - If it should accept remote commands from the manager wazuh_command.remote_commands=1 Regardless of the version, add to the file: # Logcollector - If it should accept remote commands from the manager logcollector.remote_commands=1 Finally, restart the agent. |
||
|---|---|---|
| ansible-role-elasticsearch | ||
| ansible-role-filebeat | ||
| ansible-role-kibana | ||
| ansible-role-logstash | ||
| ansible-wazuh-agent | ||
| ansible-wazuh-manager | ||
| meta | ||
| .gitignore | ||
| configure_commands_wazuh_agent.ps1 | ||
| README.md | ||
| wazuh-agent.yml | ||
| wazuh-elastic_stack-distributed.yml | ||
| wazuh-elastic_stack-single.yml | ||
| wazuh-elastic.yml | ||
| wazuh-kibana.yml | ||
| wazuh-logstash.yml | ||
| wazuh-manager.yml | ||
Wazuh Ansible playbooks
These playbooks install and configure Wazuh agent, manager and Elastic Stack.
Documentation
Based on previous work from dj-wasabi
https://github.com/dj-wasabi/ansible-ossec-server
Modified by Wazuh
The playbooks have been modified by Wazuh, including some specific requirements, templates and configuration to improve integration with Wazuh ecosystem.