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

12 lines
495 B
YAML
Raw Normal View History

2015-05-13 09:45:55 +02:00
---
- 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" )
2015-05-13 09:45:55 +02:00
- name: RedHat - add Elasticsearch repo
template: src=elasticsearch.repo dest=/etc/yum.repos.d/elasticsearch-{{ es_major_version }}.repo
2015-05-13 09:45:55 +02:00
- name: RedHat - Install Elasticsearch
yum: name=elasticsearch-{{ es_version }} state=present update_cache=yes
2015-05-13 09:45:55 +02:00
register: elasticsearch_install