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 42283cf1..cef65c8d 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
@@ -259,21 +259,21 @@
- {% if wazuh_manager_config.vulnerability_detection.enabled == 'yes' and wazuh_manager_config.wazuh_manager_indexer.enabled == 'yes' %}yes{% else %}no{% endif %}
+ {% if wazuh_manager_config.vulnerability_detection.enabled == 'yes' and wazuh_manager_config.indexer.enabled == 'yes' %}yes{% else %}no{% endif %}
{{ wazuh_manager_config.vulnerability_detection.indexer_status }}
{{ wazuh_manager_config.vulnerability_detection.feed_update_interval }}
- {% if wazuh_manager_config.vulnerability_detection.enabled == 'yes' and wazuh_manager_config.wazuh_manager_indexer.enabled == 'yes' %}yes{% else %}no{% endif %}
+ {% if wazuh_manager_config.vulnerability_detection.enabled == 'yes' and wazuh_manager_config.indexer.enabled == 'yes' %}yes{% else %}no{% endif %}
- {% for item in wazuh_manager_indexer.hosts %}
+ {% for item in wazuh_manager_config.indexer.hosts %}
https://{{ item }}:{{filebeat_output_indexer_port}}
{% endfor %}
{{ indexer_security_user }}
- "{{ indexer_security_password }}"
+ {{ indexer_security_password }}
{{ filebeat_ssl_dir }}/root-ca.pem