From 1e2e1f1f30c622cb8d8ebb4ac1b2dcd4fa94d695 Mon Sep 17 00:00:00 2001 From: Jean Prat Date: Fri, 4 Jan 2019 16:26:26 +0100 Subject: [PATCH] FIX multiple remote connection --- .../templates/var-ossec-etc-ossec-server.conf.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 %}