API call restored to private_ip

This commit is contained in:
Gonzalo Acuña 2022-05-19 13:51:58 -03:00
parent f3259712b8
commit 35bdc3d856
No known key found for this signature in database
GPG Key ID: 646BA79A313A2270

View File

@ -111,7 +111,7 @@
- name: Wait for Wazuh indexer API (Private IP)
uri:
url: "https://127.0.0.1:{{ indexer_http_port }}/_cat/health/"
url: "https://{{ hostvars[inventory_hostname]['private_ip'] if not single_node else indexer_network_host }}:{{ indexer_http_port }}/_cat/health/"
user: "admin" # Default Indexer user is always "admin"
password: "{{ indexer_admin_password }}"
validate_certs: no