ansible-role-elasticsearch/tasks/xpack/elasticsearch-xpack.yml

24 lines
1.1 KiB
YAML
Raw Normal View History

---
2018-02-04 07:09:23 +00:00
- name: set fact es_version_changed
set_fact: es_version_changed={{ ((elasticsearch_install_from_package is defined and (debian_elasticsearch_install_from_repo.changed or redhat_elasticsearch_install_from_repo.changed)) or (elasticsearch_install_from_package is defined and elasticsearch_install_from_package.changed)) }}
2018-02-04 07:09:23 +00:00
- name: include elasticsearch-xpack-install.yml
include: elasticsearch-xpack-install.yml
2018-06-13 08:29:45 +02:00
when: es_install_xpack
#Security configuration
2018-02-04 07:09:23 +00:00
- name: include security/elasticsearch-security.yml
include: security/elasticsearch-security.yml
2016-09-19 17:40:42 +02:00
#Add any feature specific configuration here
- name: Set Plugin Directory Permissions
2017-05-12 13:31:50 -07:00
become: yes
2016-11-02 14:29:11 +01:00
file: state=directory path={{ es_home }}/plugins owner={{ es_user }} group={{ es_group }} recurse=yes
#Make sure elasticsearch.keystore has correct Permissions
- name: Set elasticsearch.keystore Permissions
become: yes
file: state=file path={{ conf_dir }}/elasticsearch.keystore owner={{ es_user }} group={{ es_group }}
when: es_enable_xpack and "security" in es_xpack_features and (es_version | version_compare('6.0.0', '>'))