diff --git a/roles/wazuh/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 b/roles/wazuh/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 index 6f6a3615..7bc92ece 100644 --- a/roles/wazuh/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 +++ b/roles/wazuh/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 @@ -66,8 +66,8 @@ {{ wazuh_manager_config.log_format }} - {% for connection in wazuh_manager_config.connection %} + {{ connection.type }} {% if connection.port is defined %}{{ connection.port }}{% endif %} {% if connection.protocol is defined %}{{ connection.protocol }}{% endif %} @@ -83,9 +83,9 @@ {% endif %} {% if connection.local_ip is defined %}{{ connection.local_ip }}{% endif %} {% if connection.ipv6 is defined %}{{ connection.ipv6 }}{% endif %} - {% if connection.queue_size is defined %}{{connection.queue_size}}{% endif %} - {% endfor %} + {% if connection.queue_size is defined %}{{connection.queue_size}}{% endif %} + {% endfor %} {% if wazuh_manager_config.reports is defined %} {% for report in wazuh_manager_config.reports %}