diff --git a/roles/wazuh/ansible-wazuh-agent/templates/var-ossec-etc-ossec-agent.conf.j2 b/roles/wazuh/ansible-wazuh-agent/templates/var-ossec-etc-ossec-agent.conf.j2
index 424410b8..128ba142 100644
--- a/roles/wazuh/ansible-wazuh-agent/templates/var-ossec-etc-ossec-agent.conf.j2
+++ b/roles/wazuh/ansible-wazuh-agent/templates/var-ossec-etc-ossec-agent.conf.j2
@@ -92,23 +92,33 @@
{% endif %}
{% elif ansible_distribution == 'CentOS' %}
- {% if ansible_distribution_major_version == '7' %}
+ {% if ansible_distribution_major_version == '8' %}
+ {# Policy not available #}
+ {% elif ansible_distribution_major_version == '7' %}
+ xccdf_org.ssgproject.content_profile_pci-dss
+ xccdf_org.ssgproject.content_profile_common
+
{% elif ansible_distribution_major_version == '6' %}
- {% endif %}
xccdf_org.ssgproject.content_profile_pci-dss
xccdf_org.ssgproject.content_profile_common
+ {% endif %}
{% elif ansible_distribution == 'RedHat' %}
- {% if ansible_distribution_major_version == '7' %}
+ {% if ansible_distribution_major_version == '8' %}
+ {# Policy not available #}
+ {% elif ansible_distribution_major_version == '7' %}
+ xccdf_org.ssgproject.content_profile_pci-dss
+ xccdf_org.ssgproject.content_profile_common
+
{% elif ansible_distribution_major_version == '6' %}
- {% endif %}
xccdf_org.ssgproject.content_profile_pci-dss
xccdf_org.ssgproject.content_profile_common
+ {% endif %}
{% if ansible_distribution_major_version == '7' %}
{% elif ansible_distribution_major_version == '6' %}