From 6c7a01fb1110d97b26641f51bc6ab0b422899a75 Mon Sep 17 00:00:00 2001 From: Kris Latter Date: Thu, 9 Oct 2025 17:29:17 -0400 Subject: [PATCH 1/2] fix(ansible-wazuh-manager): correct mismatched closing tags on var-ossec-etc-ossec-server.conf.j2 --- .../templates/var-ossec-etc-ossec-server.conf.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 450922eb..f2cff4ca 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 @@ -410,7 +410,7 @@ {{ localfile.location }} {% if localfile.format == 'eventchannel' %} {% if localfile.only_future_events is defined %} - {{ localfile.only_future_events }} + {{ localfile.only_future_events }} {% endif %} {% if localfile.query is defined %} {{ localfile.query }} @@ -448,7 +448,7 @@ {{ localfile.location }} {% if localfile.format == 'eventchannel' %} {% if localfile.only_future_events is defined %} - {{ localfile.only_future_events }} + {{ localfile.only_future_events }} {% endif %} {% if localfile.query is defined %} {{ localfile.query }} @@ -487,7 +487,7 @@ {{ localfile.location }} {% if localfile.format == 'eventchannel' %} {% if localfile.only_future_events is defined %} - {{ localfile.only_future_events }} + {{ localfile.only_future_events }} {% endif %} {% if localfile.query is defined %} {{ localfile.query }} @@ -614,7 +614,7 @@ {% if wazuh_manager_config.authd.force.enabled is not none %} {{wazuh_manager_config.authd.force.enabled}} {% else %} - yes + yes {% endif %} {% if wazuh_manager_config.authd.force.key_mismatch is not none %} {{wazuh_manager_config.authd.force.key_mismatch}} From 228aa8b19e523ab05ced5e89f1276c7e08d7835b Mon Sep 17 00:00:00 2001 From: Jesus Garcia Date: Tue, 3 Feb 2026 08:07:00 -0500 Subject: [PATCH 2/2] Fix mismatched closing tags in shared-agent.conf.j2 --- CHANGELOG.md | 1 + .../templates/var-ossec-etc-shared-agent.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c7547af..b80b10bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file. ### Changed +- Fix mismatched tags in .j2 template files ([#1930](https://github.com/wazuh/wazuh-ansible/pull/1930)) - Remove meta yamls that prevent indexer and agent role installation from PR #1806 ([#1921](https://github.com/wazuh/wazuh-ansible/pull/1921)) - Ensure boolean condition evaluations - from community PR #1897 ([#1916](https://github.com/wazuh/wazuh-ansible/pull/1916)) diff --git a/roles/wazuh/ansible-wazuh-manager/templates/var-ossec-etc-shared-agent.conf.j2 b/roles/wazuh/ansible-wazuh-manager/templates/var-ossec-etc-shared-agent.conf.j2 index 7af5e3f3..0f805eee 100644 --- a/roles/wazuh/ansible-wazuh-manager/templates/var-ossec-etc-shared-agent.conf.j2 +++ b/roles/wazuh/ansible-wazuh-manager/templates/var-ossec-etc-shared-agent.conf.j2 @@ -59,7 +59,7 @@ {{ localfile.location }} {% if localfile.format == 'eventchannel' %} {% if localfile.only_future_events is defined %} - {{ localfile.only_future_events }} + {{ localfile.only_future_events }} {% endif %} {% if localfile.query is defined %} {{ localfile.query }}