diff --git a/tasks/elasticsearch-plugins.yml b/tasks/elasticsearch-plugins.yml index b42a056..5a968d8 100644 --- a/tasks/elasticsearch-plugins.yml +++ b/tasks/elasticsearch-plugins.yml @@ -2,7 +2,8 @@ # es_plugins_reinstall will be set to true if elasticsearch_install_from_repo.changed or elasticsearch_install_from_package.changed # i.e. we have changed ES version(or we have clean installation of ES), or if no plugins listed. Otherwise it is false and requires explicitly setting. -- set_fact: es_plugins_reinstall={{ ((elasticsearch_install_from_package is defined and elasticsearch_install_from_repo.changed) or (elasticsearch_install_from_package is defined and elasticsearch_install_from_package.changed)) or es_plugins is not defined or es_plugins is none }} +- set_fact: es_plugins_reinstall=true + when: es_plugins_reinstall={{ ((elasticsearch_install_from_repo is defined and elasticsearch_install_from_repo.changed) or (elasticsearch_install_from_package is defined and elasticsearch_install_from_package.changed)) or es_plugins is not defined or es_plugins is none }} - set_fact: list_command="list" diff --git a/tasks/elasticsearch-templates.yml b/tasks/elasticsearch-templates.yml index e0a0773..27c0c42 100644 --- a/tasks/elasticsearch-templates.yml +++ b/tasks/elasticsearch-templates.yml @@ -11,4 +11,4 @@ copy: src={{ item }} dest=/etc/elasticsearch/templates owner={{ es_user }} group={{ es_group }} notify: load-templates with_fileglob: - - "{{ es_templates_fileglob | default('') }}" + - "{{ es_templates_fileglob | default('') }}" \ No newline at end of file