From 5619ada1109608695b96bce926516ea95f212716 Mon Sep 17 00:00:00 2001 From: Jakob Reiter Date: Tue, 29 Nov 2016 22:11:16 +0100 Subject: [PATCH] Conditional for checking if shield is in the feature list, did not work. Closes #190 --- tasks/elasticsearch-parameters.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/elasticsearch-parameters.yml b/tasks/elasticsearch-parameters.yml index 0f1e8e5..771be3e 100644 --- a/tasks/elasticsearch-parameters.yml +++ b/tasks/elasticsearch-parameters.yml @@ -27,7 +27,7 @@ #Check if working with shield we have an es_api_basic_auth_username and es_api_basic_auth_username - otherwise any http calls wont work - fail: msg="Enabling shield requires an es_api_basic_auth_username and es_api_basic_auth_password to be provided to allow cluster operations" - when: es_enable_xpack and '"shield" in es_xpack_features' and es_api_basic_auth_username is not defined and es_api_basic_auth_password is not defined + when: es_enable_xpack and ("shield" in es_xpack_features) and es_api_basic_auth_username is not defined and es_api_basic_auth_password is not defined - set_fact: instance_default_file={{default_file | dirname}}/{{es_instance_name}}_{{default_file | basename}} - set_fact: instance_init_script={{init_script | dirname }}/{{es_instance_name}}_{{init_script | basename}} @@ -51,4 +51,4 @@ - set_fact: pid_dir={{ es_pid_dir }}/{{instance_suffix}} - set_fact: log_dir={{ es_log_dir }}/{{instance_suffix}} - set_fact: work_dir={{ es_work_dir }}/{{instance_suffix}} -- set_fact: data_dirs={{ es_data_dirs | append_to_list('/'+instance_suffix) }} \ No newline at end of file +- set_fact: data_dirs={{ es_data_dirs | append_to_list('/'+instance_suffix) }}