From 7f5d5262e95836d839d042edcd48fd4da7d0d5dd Mon Sep 17 00:00:00 2001 From: Bob Vincent Date: Tue, 24 Jul 2018 09:03:18 -0400 Subject: [PATCH] Support option to disable active-responses. #39 --- .../templates/var-ossec-etc-ossec-server.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 6ce31f99..bd1010f7 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 @@ -309,8 +309,8 @@ {% for response in wazuh_manager_config.active_responses %} - no - {{ response.command }} + {% if response.disabled is defined %}{{ response.disabled }}{% else %}no{% endif %} + {%if response.command is defined %}{{ response.command }}{% endif %} {%if response.location is defined %}{{ response.location }}{% endif %} {%if response.agent_id is defined %}{{ response.agent_id }}{% endif %} {%if response.level is defined %}{{ response.level }}{% endif %}