Added functionality to install rpm from elastic url instead of the repo.
This commit is contained in:
parent
05043097b7
commit
a29ead8dc9
1 changed files with 9 additions and 0 deletions
|
|
@ -2,10 +2,19 @@
|
||||||
- name: Ensure libselinux-python on CentOS 6.x
|
- name: Ensure libselinux-python on CentOS 6.x
|
||||||
yum: name=libselinux-python state=present update_cache=yes
|
yum: name=libselinux-python state=present update_cache=yes
|
||||||
when: ( ansible_distribution == "CentOS" ) and ( ansible_distribution_major_version == "6" )
|
when: ( ansible_distribution == "CentOS" ) and ( ansible_distribution_major_version == "6" )
|
||||||
|
|
||||||
- name: RedHat - add Elasticsearch repo
|
- name: RedHat - add Elasticsearch repo
|
||||||
template: src=elasticsearch.repo dest=/etc/yum.repos.d/elasticsearch-{{ es_major_version }}.repo
|
template: src=elasticsearch.repo dest=/etc/yum.repos.d/elasticsearch-{{ es_major_version }}.repo
|
||||||
|
when: es_use_repository
|
||||||
|
|
||||||
- name: RedHat - Install Elasticsearch
|
- name: RedHat - Install Elasticsearch
|
||||||
yum: name=elasticsearch{% if es_version is defined and es_version != "" %}-{{ es_version }}{% endif %} state=present update_cache=yes
|
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
|
register: elasticsearch_install
|
||||||
|
|
||||||
- name: RedHat - configure memory
|
- name: RedHat - configure memory
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue