fix when condition for es_ssl_certificate_authority

bool ansible filter can only be used for strings matching "true" or "false"
This commit is contained in:
Julien Mailleret 2019-12-18 11:30:25 +01:00
parent ac8548503a
commit 1116d4ddf4
No known key found for this signature in database
GPG key ID: F065093271C8DE71

View file

@ -61,7 +61,7 @@
mode: "640" mode: "640"
#Restart if this changes #Restart if this changes
notify: restart elasticsearch 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 - 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' shell: echo "{{ es_ssl_keystore_password }}" | {{ es_home }}/bin/elasticsearch-keystore add -x -f 'xpack.security.{{ item }}.ssl.keystore.secure_password'