diff --git a/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 b/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 index 9669c847..1ffa2d81 100644 --- a/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 +++ b/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 @@ -47,6 +47,23 @@ {% endif %} {% endfor %} +{% endif %} + +{% if wazuh_manager_config.reports is defined %} +{% for report in wazuh_manager_config.reports %} + + {{ report.category }} + {{ report.title }} + {{ report.email_to }} + {% if report.location is defined %}{{ report.location }}{% endif %} + {% if report.group is defined %}{{ report.group }}{% endif %} + {% if report.rule is defined %}{{ report.rule }}{% endif %} + {% if report.level is defined %}{{ report.level }}{% endif %} + {% if report.srcip is defined %}{{ report.srcip }}{% endif %} + {% if report.user is defined %}{{ report.user }}{% endif %} + {% if report.showlogs is defined %}{{ report.showlogs }}{% endif %} + +{% endfor %} {% endif %}