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 6f46fed9..0de65c57 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 @@ -93,7 +93,7 @@ {{ agent_config.rootcheck.frequency }} - {% if agent_config.rootcheck.cis_distribution_filename is defined %} + {% if agent_config.rootcheck.cis_distribution_filename is defined and agent_config.rootcheck.cis_distribution_filename is not null %} {{ wazuh_dir }}/etc/shared/default/{{ agent_config.rootcheck.cis_distribution_filename }} {% endif %} yes