Merged changes from 138
This commit is contained in:
parent
3c7fbbe3e0
commit
7a2f0b43d2
4 changed files with 9 additions and 9 deletions
|
|
@ -3,6 +3,8 @@ es_major_version: "2.x"
|
||||||
es_version: "2.3.4"
|
es_version: "2.3.4"
|
||||||
es_version_lock: false
|
es_version_lock: false
|
||||||
es_use_repository: true
|
es_use_repository: true
|
||||||
|
es_apt_key: "http://packages.elasticsearch.org/GPG-KEY-elasticsearch"
|
||||||
|
es_apt_url: "deb http://packages.elastic.co/elasticsearch/{{ es_major_version }}/debian stable main"
|
||||||
es_start_service: true
|
es_start_service: true
|
||||||
es_java_install: true
|
es_java_install: true
|
||||||
update_java: false
|
update_java: false
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,11 @@
|
||||||
when: es_allow_downgrades
|
when: es_allow_downgrades
|
||||||
|
|
||||||
- name: Debian - Add Elasticsearch repository key
|
- name: Debian - Add Elasticsearch repository key
|
||||||
apt_key: url="http://packages.elasticsearch.org/GPG-KEY-elasticsearch" state=present
|
apt_key: url="{{ es_apt_key }}" state=present
|
||||||
when: es_use_repository
|
when: es_use_repository and es_apt_key
|
||||||
|
|
||||||
- name: Debian - add elasticsearch repository
|
- name: Debian - add elasticsearch repository
|
||||||
apt_repository: repo="deb http://packages.elastic.co/elasticsearch/{{ es_major_version }}/debian stable main" state=present
|
apt_repository: repo="{{ es_apt_url }}" state=present
|
||||||
when: es_use_repository
|
when: es_use_repository
|
||||||
|
|
||||||
- name: Debian - include versionlock
|
- name: Debian - include versionlock
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@
|
||||||
# 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.
|
# 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={{ ((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 }}
|
||||||
|
|
||||||
- debug: msg="{{es_plugins_reinstall}}"
|
|
||||||
|
|
||||||
- set_fact: list_command="list"
|
- set_fact: list_command="list"
|
||||||
|
|
||||||
- set_fact: list_command="--list"
|
- set_fact: list_command="--list"
|
||||||
|
|
@ -49,5 +47,4 @@
|
||||||
|
|
||||||
#Set permissions on plugins directory
|
#Set permissions on plugins directory
|
||||||
- name: Set Plugin Directory Permissions
|
- name: Set Plugin Directory Permissions
|
||||||
file: state=directory path={{ es_home }}/plugins owner={{ es_user }} group={{ es_group }} recurse=yes
|
file: state=directory path={{ plugin_dir }} owner={{ es_user }} group={{ es_group }} recurse=yes
|
||||||
when: es_enable_xpack
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,8 @@
|
||||||
|
|
||||||
- name: Copy templates to elasticsearch
|
- name: Copy templates to elasticsearch
|
||||||
copy: src={{ item }} dest=/etc/elasticsearch/templates owner={{ es_user }} group={{ es_group }}
|
copy: src={{ item }} dest=/etc/elasticsearch/templates owner={{ es_user }} group={{ es_group }}
|
||||||
when: es_templates_fileglob is defined
|
|
||||||
notify: load-templates
|
notify: load-templates
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- "{{ es_templates_fileglob }}"
|
- "{{ es_templates_fileglob | default('') }}"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue