Skip to content

Commit 9dc21d4

Browse files
authored
Merge pull request elastic#200 from jakommo/master
Conditional for checking if shield is in the feature list, did not work. Closes elastic#190
2 parents a4a0329 + 5619ada commit 9dc21d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/elasticsearch-parameters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#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
2929
- fail: msg="Enabling shield requires an es_api_basic_auth_username and es_api_basic_auth_password to be provided to allow cluster operations"
30-
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
30+
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
3131

3232
- set_fact: instance_default_file={{default_file | dirname}}/{{es_instance_name}}_{{default_file | basename}}
3333
- set_fact: instance_init_script={{init_script | dirname }}/{{es_instance_name}}_{{init_script | basename}}
@@ -51,4 +51,4 @@
5151
- set_fact: pid_dir={{ es_pid_dir }}/{{instance_suffix}}
5252
- set_fact: log_dir={{ es_log_dir }}/{{instance_suffix}}
5353
- set_fact: work_dir={{ es_work_dir }}/{{instance_suffix}}
54-
- set_fact: data_dirs={{ es_data_dirs | append_to_list('/'+instance_suffix) }}
54+
- set_fact: data_dirs={{ es_data_dirs | append_to_list('/'+instance_suffix) }}

0 commit comments

Comments
 (0)