Add task to configure ES bootstrap password.

This commit is contained in:
Jose M 2019-07-01 15:50:06 +02:00
parent d78393115f
commit fdb1113a19

View File

@ -150,6 +150,11 @@
- elasticsearch_xpack_security
tags: xpack-security
- name: Set elasticsearch bootstrap password
shell: "echo '{{elasticsearch_xpack_security_password}}' | {{node_certs_source}}/bin/elasticsearch-keystore add -xf 'bootstrap.password'"
when:
- node_certs_generator
- elasticsearch_xpack_security
- name: Reload systemd
systemd: daemon_reload=true