Use group es_cluster

This commit is contained in:
Manuel Gutierrez 2020-06-10 19:01:33 +02:00
parent 1062cddf06
commit 1a5f74eec0
No known key found for this signature in database
GPG Key ID: CEB8789DAED15AAD

View File

@ -2,7 +2,7 @@
elasticsearch_http_port: 9200 elasticsearch_http_port: 9200
elasticsearch_nodes: |- elasticsearch_nodes: |-
{% for item in groups['kibana'] -%} {% for item in groups['es_cluster'] -%}
{{ hostvars[item]['ip'] }}{% if not loop.last %}","{% endif %} {{ hostvars[item]['ip'] }}{% if not loop.last %}","{% endif %}
{%- endfor %} {%- endfor %}
elasticsearch_network_host: 172.16.0.161 elasticsearch_network_host: 172.16.0.161