Merge pull request #647 from jmlrt/fix-es_ssl_certificate_authority-639

fix when condition for es_ssl_certificate_authority
This commit is contained in:
Julien Mailleret 2019-12-18 15:51:24 +01:00 committed by GitHub
commit af9a5936a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@
mode: "640"
#Restart if this changes
notify: restart elasticsearch
when: es_ssl_certificate_authority | bool
when: (es_ssl_certificate_authority is defined) and (es_ssl_certificate_authority|length > 0)
- name: Set keystore password
shell: echo "{{ es_ssl_keystore_password }}" | {{ es_home }}/bin/elasticsearch-keystore add -x -f 'xpack.security.{{ item }}.ssl.keystore.secure_password'