New task for generating instances.yml file

This commit is contained in:
manuasir 2019-06-26 19:37:02 +02:00
parent 090514b9c5
commit 48746b9f5a

View File

@ -120,10 +120,12 @@
- node_generate_certs - node_generate_certs
- elasticsearch_xpack_security - elasticsearch_xpack_security
- name: Check that the instances.yml file exists - name: Write the instances.yml file in the selected node
stat: instances_file:
path: /usr/share/elasticsearch/instances.yml src: instances.yml.j2
register: instances_file_exists dest: "/usr/share/elasticsearch/instances.yml"
tags:
- config
when: when:
- node_generate_certs - node_generate_certs
- elasticsearch_xpack_security - elasticsearch_xpack_security