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 85b82ff2..d23479dd 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 @@ -66,8 +66,8 @@ {% endif %} {% endif %} {% if localfile.format == 'json' and localfile.labels is defined %} - {% for key, value in localfile.labels.items() %} - + {% for item in localfile.labels %} + {% endfor %} {% endif %} {% if localfile.target is defined %} @@ -93,7 +93,7 @@ {{ agent_config.rootcheck.frequency }} - {% if agent_config.rootcheck.cis_distribution_filename is not none %} + {% if agent_config.rootcheck.cis_distribution_filename is defined %} /var/ossec/etc/shared/default/{{ agent_config.rootcheck.cis_distribution_filename }} {% endif %} yes