Added functionality to install rpm from elastic url instead of the repo.

This commit is contained in:
Jakob Reiter 2015-07-16 16:42:39 +02:00
parent 05043097b7
commit a99edb67b5

View file

@ -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