mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-17 17:14:20 +01:00
Added functionality to install rpm from elastic url instead of the repo.
This commit is contained in:
@@ -2,10 +2,19 @@
|
||||
- name: Ensure libselinux-python on CentOS 6.x
|
||||
yum: name=libselinux-python state=present update_cache=yes
|
||||
when: ( ansible_distribution == "CentOS" ) and ( ansible_distribution_major_version == "6" )
|
||||
|
||||
- name: RedHat - add Elasticsearch repo
|
||||
template: src=elasticsearch.repo dest=/etc/yum.repos.d/elasticsearch-{{ es_major_version }}.repo
|
||||
when: es_use_repository
|
||||
|
||||
- name: RedHat - Install Elasticsearch
|
||||
yum: name=elasticsearch{% if es_version is defined and es_version != "" %}-{{ es_version }}{% endif %} state=present update_cache=yes
|
||||
when: es_use_repository
|
||||
register: elasticsearch_install
|
||||
|
||||
- name: RedHat - Install Elasticsearch from url
|
||||
yum: name={{ __es_package_url.default }}-{{ es_version }}.noarch.rpm state=present
|
||||
when: not es_use_repository
|
||||
register: elasticsearch_install
|
||||
|
||||
- name: RedHat - configure memory
|
||||
|
||||
Reference in New Issue
Block a user