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 0de65c57..6ac6b41d 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 and agent_config.rootcheck.cis_distribution_filename is not null %}
+ {% if agent_config.rootcheck.cis_distribution_filename is not none %}
{{ wazuh_dir }}/etc/shared/default/{{ agent_config.rootcheck.cis_distribution_filename }}
{% endif %}
yes