Change ip to inventory_hostname in Wait for ES API task

This commit is contained in:
Jose M 2020-06-25 11:38:54 +02:00
parent 383d9beec1
commit d1a08c1a3f
No known key found for this signature in database
GPG Key ID: 790179D6924E10FF

View File

@ -51,7 +51,7 @@
- name: Wait for Elasticsearch API
uri:
url: "https://{{ es_nodes.split(',')[0].split('\"')[0] }}:9200/_cluster/health/"
url: "https://{{ inventory_hostname }}:9200/_cluster/health/"
user: "admin" # Default OpenDistro user is always "admin"
password: "{{ opendistro_admin_password }}"
validate_certs: no