New tasks for checking instances.yml file
This commit is contained in:
parent
7194675f02
commit
090514b9c5
@ -119,7 +119,15 @@
|
||||
when:
|
||||
- node_generate_certs
|
||||
- elasticsearch_xpack_security
|
||||
|
||||
|
||||
- name: Check that the instances.yml file exists
|
||||
stat:
|
||||
path: /usr/share/elasticsearch/instances.yml
|
||||
register: instances_file_exists
|
||||
when:
|
||||
- node_generate_certs
|
||||
- elasticsearch_xpack_security
|
||||
|
||||
- name: Generating certificates for Elasticsearch security
|
||||
shell: "/usr/share/elasticsearch/bin/elasticsearch-certutil cert ca --pem --in /usr/share/elasticsearch/instances.yml --out /usr/share/elasticsearch/certs.zip"
|
||||
when:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user