Fix instances and certs.zip checks and generation.
This commit is contained in:
parent
2b18745cd0
commit
e3cd8731f3
@ -70,7 +70,19 @@
|
|||||||
|
|
||||||
# fix in new PR (ignore_errors)
|
# fix in new PR (ignore_errors)
|
||||||
|
|
||||||
- name: Check that the instances.yml file exists
|
- name: Write the instances.yml file in the selected node (force = no)
|
||||||
|
template:
|
||||||
|
src: instances.yml.j2
|
||||||
|
dest: "{{node_certs_source}}/instances.yml"
|
||||||
|
force: no
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- xpack-security
|
||||||
|
when:
|
||||||
|
- node_certs_generator
|
||||||
|
- elasticsearch_xpack_security
|
||||||
|
|
||||||
|
- name: Update instances.yml status after generation
|
||||||
stat:
|
stat:
|
||||||
path: "{{node_certs_source}}/instances.yml"
|
path: "{{node_certs_source}}/instances.yml"
|
||||||
register: instances_file_exists
|
register: instances_file_exists
|
||||||
@ -78,18 +90,7 @@
|
|||||||
- node_certs_generator
|
- node_certs_generator
|
||||||
- elasticsearch_xpack_security
|
- elasticsearch_xpack_security
|
||||||
|
|
||||||
- name: Write the instances.yml file in the selected node
|
- name: Check if the certificates ZIP file exists
|
||||||
template:
|
|
||||||
src: instances.yml.j2
|
|
||||||
dest: "{{node_certs_source}}/instances.yml"
|
|
||||||
tags:
|
|
||||||
- config
|
|
||||||
- xpack-security
|
|
||||||
when:
|
|
||||||
- node_certs_generator
|
|
||||||
- elasticsearch_xpack_security
|
|
||||||
|
|
||||||
- name: Check that the certificates ZIP file exists
|
|
||||||
stat:
|
stat:
|
||||||
path: "{{node_certs_source}}/certs.zip"
|
path: "{{node_certs_source}}/certs.zip"
|
||||||
register: xpack_certs_zip
|
register: xpack_certs_zip
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user